HomeFreeBSD

reboot: Add sanity checking of write to nextboot.conf

Description

reboot: Add sanity checking of write to nextboot.conf

Add sanity checking to the write to nextboot. Move to separate function
and allow force to override all errors. If we can't write nextboot.conf,
don't silently fail anymore.

Sponsored by: Netflix
Reviewed by: kevans, kib, markj, jhb
Differential Revision: https://reviews.freebsd.org/D43803

Details

Provenance
impAuthored on Feb 12 2024, 6:45 PM
Reviewer
kevans
Differential Revision
D43803: reboot: Add sanity checking of write to nextboot.conf
Parents
rG7cb1a0e6e064: reboot: Don't reboot if the next kernel isn't there
Branches
Unknown
Tags
Unknown