From a746e938cd7aa566912504d309746b7a6a42dfa4 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sat, 7 May 2022 13:34:14 +0200 Subject: [PATCH] Chroot.deactivate(ignore_rootfs=True): also ignore /boot --- chroot/abstract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chroot/abstract.py b/chroot/abstract.py index 017259e..1e8b5db 100644 --- a/chroot/abstract.py +++ b/chroot/abstract.py @@ -208,7 +208,7 @@ class Chroot(AbstractChroot): if not self.active: if fail_if_inactive: raise Exception(f"Chroot {self.name} not activated, can't deactivate!") - self.umount_many([mnt for mnt in self.active_mounts if mnt != '/' or not ignore_rootfs]) + self.umount_many([mnt for mnt in self.active_mounts if mnt not in ['/', '/boot'] or not ignore_rootfs]) self.active = False def run_cmd(