Page MenuHomeFreeBSD

reboot: Allow this to be installed as nextboot
ClosedPublic

Authored by imp on Feb 11 2024, 2:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 24, 12:36 AM
Unknown Object (File)
Mon, Sep 23, 1:18 PM
Unknown Object (File)
Mon, Sep 23, 4:19 AM
Unknown Object (File)
Sun, Sep 22, 8:33 PM
Unknown Object (File)
Sun, Sep 22, 8:05 PM
Unknown Object (File)
Thu, Sep 19, 12:43 PM
Unknown Object (File)
Wed, Sep 18, 6:45 PM
Unknown Object (File)
Tue, Sep 17, 9:32 PM
Subscribers

Details

Summary

Allow nextboot to be a symlink link to reboot. It does everything reboot
does, except doesn't actually setup the sytem to reboot and reboot. Also,
don't accept the reboot args related to rebooting when in nextboot mode.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 55940
Build 52829: arc lint + arc unit

Event Timeline

imp requested review of this revision.Feb 11 2024, 2:27 AM
imp created this revision.
kib added inline comments.
sbin/reboot/reboot.c
305
This revision is now accepted and ready to land.Feb 12 2024, 2:15 AM
sbin/reboot/reboot.c
190

Instead of having to repeat this many times, what about having a per-prog getopt string?

275
sbin/reboot/reboot.c
275

Pre-existing style though, which i try not to gratuitously not change...

fold in ed's suggestion and add {} around the while loop to reflect updated
practices since this code was written.

This revision now requires review to proceed.Feb 12 2024, 6:33 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 12 2024, 6:54 PM
This revision was automatically updated to reflect the committed changes.