Option to directly reboot after installation
This a suggestion.
Can we create a option on what to do after the installation.
- Post-Install
- Reboot
- Chroot (Into installed system)
- Exit (Into the Archiso)
So when for example I setup a VM, I can just close the virt-viewer, and access it via ssh.
hmm, I'm so used to doing this with prepping a conf and do archinstall --conf https://hvornum.se/reboot.json --silent and in the conf having:
{
...
"custom-commands": [
"reboot"
]
}
(you can also skip --silent and have the conf only contain the reboot starement, and archinstall will behave as usual with the menues, but after do the reboot)
But this could also be done with archinstall && reboot assuming we didn't have the "do you want to chroot.."
So those custom commands are executed before the chroot prompt and after the other installations? Nice to know...
That would be fine by me, but I think for most people, it would be easier to have a menu point for it or when doing a spontaneous installation and not wanting to edit a config file.
I agree, from a simplistic use case.
I would argue that the "do you want to chroot" and "reboot" could be moved in to a post-install menu options. So it's part of the menu system instead of being a input() question after :)