chore: bind mount before arch-chroot

This commit is contained in:
Rudra B.S. 2023-11-24 09:26:40 +05:30
parent c2004b7422
commit 375ccc84b3

View file

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