From: Plom Heller Date: Fri, 28 Aug 2026 12:34:40 +0000 (+0200) Subject: Fix umount failures. X-Git-Url: https://plomlompom.com/repos/booking/%22https:/validator.w3.org/condition?a=commitdiff_plain;h=c3f591068ce6ead9cdc079238ec94f519c5829df;p=confplom Fix umount failures. --- diff --git a/install_debian.sh b/install_debian.sh index 998f0d7..275e26b 100755 --- a/install_debian.sh +++ b/install_debian.sh @@ -120,6 +120,14 @@ lvcreate -l '100%FREE' -n "${NAME_ROOT}" "${NAME_VOLGROUP}" msg 'Creating EXT4 filesystem …' mkfs.ext4 -q "${LOGVOL_ROOT}" +# to facilitate later unmounting of the chrooted system: isolate our mounts +# against propagation to services sandboxed with PrivateMounts=yes (e.g. +# systemd-udevd), into whose private namespaces our later umount might fail to +# reach for closing their references e.g. into what we'll want to vgchange -an, +# which would then be blocked by referenced devices still claimed as "busy" … +msg "Privatize script's process' mount namespace …" +mount --make-rprivate / + # mount and install base msg 'Mounting %s at %s …' "${LOGVOL_ROOT}" "${PATH_MNT}" mkdir -p "${PATH_MNT}"