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
F102560221: D36560.id110544.diff
Thu, Nov 14, 2:01 AM
Unknown Object (File)
Sun, Nov 10, 1:40 PM
Unknown Object (File)
Wed, Nov 6, 12:03 PM
Unknown Object (File)
Fri, Oct 18, 4:27 PM
Unknown Object (File)
Oct 10 2024, 7:40 AM
Unknown Object (File)
Oct 10 2024, 7:26 AM
Unknown Object (File)
Oct 10 2024, 7:25 AM
Unknown Object (File)
Oct 8 2024, 12:19 AM
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)?