Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-04-10 16:10:21 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-10 16:10:21 +0200
commit4b7cabeab485e1ca0dae5f9e5646e74e97379cb9 (patch)
treec0ce7c5cf3c49732652779b7a275938f94ac3c54 /archinstall.py
parent8b4c611d76dddea8eb223cb6b1d025d785a8080d (diff)
Added support to boot a installation
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index a232add5..d2284e9d 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -552,7 +552,10 @@ if __name__ == '__main__':
o = run("cd /mnt; umount -R sys")
o = run("cd /mnt; umount -R proc")
else:
- o = run('systemd-nspawn -D /mnt --machine temporary {c}'.format(c=command), opts)
+ if 'boot' in opts and opts['boot']:
+ o = run('systemd-nspawn -D /mnt -b --machine temporary {c}'.format(c=command), opts)
+ else:
+ o = run('systemd-nspawn -D /mnt --machine temporary {c}'.format(c=command), opts)
if type(conf[title][raw_command]) == bytes and len(conf[title][raw_command]) and not conf[title][raw_command] in o:
print('[W] Post install command failed: {}'.format(o.decode('UTF-8')))
#print(o)