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)
Fri, Nov 1, 2:18 AM
Unknown Object (File)
Mon, Oct 21, 1:18 AM
Unknown Object (File)
Mon, Oct 21, 1:18 AM
Unknown Object (File)
Mon, Oct 21, 1:18 AM
Unknown Object (File)
Mon, Oct 21, 1:18 AM
Unknown Object (File)
Mon, Oct 21, 1:17 AM
Unknown Object (File)
Fri, Oct 18, 7:32 PM
Unknown Object (File)
Fri, Oct 18, 8:03 AM
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