Chroot.deactivate(ignore_rootfs=True): also ignore /boot

This commit is contained in:
InsanePrawn 2022-05-07 13:34:14 +02:00
parent b13b00e85b
commit a746e938cd

View file

@ -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(