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)
Sun, Mar 8, 8:07 PM
Unknown Object (File)
Thu, Mar 5, 6:58 PM
Unknown Object (File)
Thu, Mar 5, 8:37 AM
Unknown Object (File)
Thu, Mar 5, 8:21 AM
Unknown Object (File)
Thu, Feb 26, 4:26 AM
Unknown Object (File)
Tue, Feb 24, 1:04 PM
Unknown Object (File)
Tue, Feb 24, 1:04 PM
Unknown Object (File)
Feb 8 2026, 4:24 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