archinstall icon indicating copy to clipboard operation
archinstall copied to clipboard

Option to directly reboot after installation

Open CocoXiaoLong opened this issue 2 years ago • 3 comments

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.

CocoXiaoLong avatar Apr 16 '23 16:04 CocoXiaoLong

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.."

Torxed avatar Apr 21 '23 08:04 Torxed

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.

CocoXiaoLong avatar Apr 21 '23 09:04 CocoXiaoLong

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 :)

Torxed avatar Apr 21 '23 12:04 Torxed