Page MenuHomeFreeBSD

reboot: Implement -D from nextboot
ClosedPublic

Authored by imp on Feb 10 2024, 7:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 8:19 PM
Unknown Object (File)
Nov 27 2024, 8:55 PM
Unknown Object (File)
Nov 15 2024, 6:07 PM
Unknown Object (File)
Nov 15 2024, 6:06 PM
Unknown Object (File)
Nov 15 2024, 6:04 PM
Unknown Object (File)
Nov 15 2024, 4:10 PM
Unknown Object (File)
Nov 4 2024, 8:01 PM
Unknown Object (File)
Oct 21 2024, 1:06 AM
Subscribers

Details

Summary

Implement -D from nextboot.sh which deletes the nextboot.conf file and
exists.

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 10 2024, 7:48 PM
imp created this revision.

rebase / refresh / Add 'D' to getopt string

sbin/reboot/reboot.c
171

This op is not actual reboot. Do we care if the program is executed by set-uid caller?

imp marked an inline comment as done.Feb 12 2024, 6:21 PM
imp added inline comments.
sbin/reboot/reboot.c
171

Indeed. Updated to reflect.

imp marked an inline comment as done.

move super user check

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.