Page MenuHomeFreeBSD

reboot: Disallow -k and -r, it doesn't make sense.
ClosedPublic

Authored by imp on Feb 9 2024, 5:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 21, 7:34 PM
Unknown Object (File)
Mon, Sep 16, 3:35 PM
Unknown Object (File)
Sat, Sep 14, 9:32 PM
Unknown Object (File)
Fri, Sep 13, 2:48 AM
Unknown Object (File)
Sat, Sep 7, 11:19 PM
Unknown Object (File)
Sat, Sep 7, 11:18 PM
Unknown Object (File)
Sat, Sep 7, 11:18 PM
Unknown Object (File)
Sat, Sep 7, 11:18 PM
Subscribers

Details

Summary

When we're re-rooting to a new /, there is no next kernel. Error out
rather than leaving a timebomb in /boot/nextboot.conf.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Feb 9 2024, 5:11 AM
imp created this revision.
This revision is now accepted and ready to land.Feb 9 2024, 6:31 AM
sbin/reboot/reboot.c
119

period at the end of the errx here is inconsistent with the other errors

imp marked an inline comment as done.Feb 9 2024, 5:42 PM
imp added inline comments.
sbin/reboot/reboot.c
119

Ah, I was trying to be paranoid about that and missed one. thanks!

imp marked an inline comment as done.

remove period for consistency.

This revision now requires review to proceed.Feb 9 2024, 5:42 PM
This revision is now accepted and ready to land.Feb 12 2024, 4:55 PM

oh also probably a semicolon instead of a comma like the "must reboot instead" above