Page MenuHomeFreeBSD

release/rc.local: Provide option to shutdown after installation complete
ClosedPublic

Authored by woodsb02 on Sep 14 2022, 1:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 14 2024, 12:45 PM
Unknown Object (File)
Mar 11 2024, 2:04 AM
Unknown Object (File)
Mar 11 2024, 2:04 AM
Unknown Object (File)
Mar 11 2024, 12:49 AM
Unknown Object (File)
Feb 23 2024, 11:14 PM
Unknown Object (File)
Jan 5 2024, 6:36 AM
Unknown Object (File)
Jan 3 2024, 6:38 PM
Unknown Object (File)
Dec 22 2023, 11:23 PM
Subscribers

Details

Summary

release/rc.local: Provide option to shutdown after installation complete

This can be useful instead of reboot if installing in a virtual machine,
and the user wants to modify the VM hardware or virtual media mounts
prior to booting into the newly installed system.

Reported by: Juan Manuel Palacios (@jmp_imaginarium on Twitter)
Approved by: <SRC COMMITTER APPROVAL REQUIRED>

Test Plan

Build release ISO, boot it in test VM, complete install, at the end test the 3 options for restart, shutdown, live cd

Confirmed working - refer to screenshot below

I've also tested other failure modes - choosing shell or livecd (instead of install) immediately upon booting the ISO, and also cancelling the install part way through in multiple ways (confirmed it recovers to the first install screen as per usual).

complete-menu.png (626×1 px, 22 KB)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks good! And very useful.

Reviewed by: philip

This revision is now accepted and ready to land.Sep 16 2022, 5:34 AM

Thanks - you happy for me to put approved by: philip (your src commit approval)?