Pass dir to systemd-nspawn

This commit is contained in:
Rudra Saraswat 2023-05-08 23:03:00 +05:30
parent b161e5631f
commit a3c5a7ffd4

View file

@ -257,7 +257,7 @@ def handle_system_packages(install):
if args.noconfirm:
operation.append('--noconfirm')
if exec('systemd-nspawn', 'pacman', *operation, '--', *args.pkg) != 0:
if exec('systemd-nspawn', '-D', '/.blendrw', '--', 'pacman', *operation, '--', *args.pkg) != 0:
error('error occurred during installation, abandoning changes')
while exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) != 0:
pass