remove systemd-gpt-auto-generator to prevent it automounting partitions

Given some circumstances like matching IDs and partition setup, systemd-gpt-auto-generator
will auto-mount specially marked partitions. This would interfere with SystemRescue and also
go against the no-automount policy of SystemRescue.

So remove systemd-gpt-auto-generator during build.
This commit is contained in:
Gerd v. Egidy 2022-12-11 17:48:53 +01:00
parent a30ed60994
commit ddcd287322

View file

@ -55,6 +55,9 @@ systemctl mask updatedb.timer
# ldconfig ("Rebuild Dynamic Linker Cache") unnecessarily slows down boot some time after the release
systemctl mask ldconfig.service
# systemd-gpt-auto-generator could automatically mount filesystems given the right config. Prevent that.
rm -f /usr/lib/systemd/system-generators/systemd-gpt-auto-generator
# setup pacman signing key storage
/usr/bin/pacman-key --init
/usr/bin/pacman-key --populate