Added support to boot a installation
This commit is contained in:
parent
8b4c611d76
commit
4b7cabeab4
|
|
@ -551,6 +551,9 @@ if __name__ == '__main__':
|
||||||
o = run("cd /mnt; umount -R dev")
|
o = run("cd /mnt; umount -R dev")
|
||||||
o = run("cd /mnt; umount -R sys")
|
o = run("cd /mnt; umount -R sys")
|
||||||
o = run("cd /mnt; umount -R proc")
|
o = run("cd /mnt; umount -R proc")
|
||||||
|
else:
|
||||||
|
if 'boot' in opts and opts['boot']:
|
||||||
|
o = run('systemd-nspawn -D /mnt -b --machine temporary {c}'.format(c=command), opts)
|
||||||
else:
|
else:
|
||||||
o = run('systemd-nspawn -D /mnt --machine temporary {c}'.format(c=command), opts)
|
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:
|
if type(conf[title][raw_command]) == bytes and len(conf[title][raw_command]) and not conf[title][raw_command] in o:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue