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
F151239299: D43800.id134119.diff
Tue, Apr 7, 1:32 AM
F151227649: D43800.id134206.diff
Mon, Apr 6, 11:56 PM
Unknown Object (File)
Mon, Apr 6, 8:05 AM
Unknown Object (File)
Sun, Apr 5, 11:27 AM
Unknown Object (File)
Sat, Apr 4, 5:06 PM
Unknown Object (File)
Sat, Apr 4, 2:22 AM
Unknown Object (File)
Fri, Apr 3, 10:06 PM
Unknown Object (File)
Wed, Mar 25, 9:56 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