mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -05:00
Chroot.deactivate(ignore_rootfs=True): also ignore /boot
This commit is contained in:
parent
b13b00e85b
commit
a746e938cd
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue