chroot: cleanups, initialize(): unmount everything except / before create_rootfs()

This commit is contained in:
InsanePrawn 2022-05-06 04:07:41 +02:00
parent 686c94c3ad
commit 3874b4e626
2 changed files with 5 additions and 6 deletions

View file

@ -8,7 +8,6 @@ from wrapper import enforce_wrap
from .abstract import Chroot
from .base import get_base_chroot
from .build import get_build_chroot, BuildChroot
#from .device import get_device_chroot, DeviceChroot
from .helpers import get_chroot_path
# export Chroot class
@ -59,4 +58,3 @@ def cmd_chroot(type: str = 'build', arch: str = None, enable_crossdirect=True):
chroot.activate()
logging.debug(f'Starting shell in {chroot.name}:')
chroot.run_cmd('bash', attach_tty=True)
chroot.run_cmd('bash', attach_tty=True)