chroot: cleanups, initialize(): unmount everything except / before create_rootfs()
This commit is contained in:
parent
686c94c3ad
commit
3874b4e626
2 changed files with 5 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue