Page MenuHomeFreeBSD

reboot: Implement -D from nextboot
ClosedPublic

Authored by imp on Feb 10 2024, 7:48 PM.
Tags
None
Referenced Files
F165348863: D43822.id134211.diff
Fri, Aug 7, 6:52 PM
F165346057: D43822.id134123.diff
Fri, Aug 7, 6:30 PM
F165334496: D43822.id134199.diff
Fri, Aug 7, 5:09 PM
F165333584: D43822.id134123.diff
Fri, Aug 7, 5:02 PM
F165319150: D43822.id134107.diff
Fri, Aug 7, 3:09 PM
F165305852: D43822.id134199.diff
Fri, Aug 7, 1:24 PM
Unknown Object (File)
Thu, Aug 6, 1:56 PM
Unknown Object (File)
Thu, Aug 6, 1:45 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 55922
Build 52811: arc lint + arc unit

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
172

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
172

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.