From c3f591068ce6ead9cdc079238ec94f519c5829df Mon Sep 17 00:00:00 2001 From: Plom Heller Date: Fri, 28 Aug 2026 14:34:40 +0200 Subject: [PATCH] Fix umount failures. --- install_debian.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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}" -- 2.30.2