From ddcd28732282373e43e1202f17ff6f0b63d749a0 Mon Sep 17 00:00:00 2001 From: "Gerd v. Egidy" Date: Sun, 11 Dec 2022 17:48:53 +0100 Subject: [PATCH] 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. --- airootfs/root/customize_airootfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airootfs/root/customize_airootfs.sh b/airootfs/root/customize_airootfs.sh index 70d52b4..0d80080 100755 --- a/airootfs/root/customize_airootfs.sh +++ b/airootfs/root/customize_airootfs.sh @@ -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