chore: bind mount before arch-chroot
This commit is contained in:
parent
c2004b7422
commit
375ccc84b3
1 changed files with 4 additions and 1 deletions
5
akshara
5
akshara
|
@ -79,7 +79,10 @@ def exec(*cmd, **kwargs):
|
||||||
|
|
||||||
|
|
||||||
def exec_chroot(*cmd, **kwargs):
|
def exec_chroot(*cmd, **kwargs):
|
||||||
return exec('arch-chroot', '/.new_rootfs', *cmd, **kwargs)
|
exec('mount', '--bind', '/.new_rootfs', '/.new_rootfs')
|
||||||
|
ret = exec('arch-chroot', '/.new_rootfs', *cmd, **kwargs)
|
||||||
|
exec('umount', '-l', '/.new_rootfs')
|
||||||
|
return ret
|
||||||
|
|
||||||
|
|
||||||
fg = colors.fg()
|
fg = colors.fg()
|
||||||
|
|
Loading…
Reference in a new issue