freebsd-src/sbin/reboot
Warner Losh 0df5f65908 reboot: Implement zfs support
Implement full support for ZFS -k support. For ZFS, we have to set a
property that gets cleared by the boot loaeder for whether or not to
process nextboot.conf. Do this using system("zfsbootcfg..." rather than
coding the small subset of that program inline to avoid CDDL
contamination of reboot and the complications of disabling CDDL and/or
ZFS. The few bytes needed to implement reboot for systems with zfs is
not worth saving for systems w/o ZFS.

Only set nextboot_enable=YES for UFS filesystems. They are the only one
that need that as the first line. Its presence on ZFS can cause the
kernel to not be oneshot.

Sponsored by:		Netflix
Reviewed by:		kevans, kib
Differential Revision:	https://reviews.freebsd.org/D43824
2024-02-12 11:45:37 -07:00
..
boot_i386.8 sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
Makefile sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nextboot.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
nextboot.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
reboot.8 reboot: Implement -D from nextboot 2024-02-12 11:45:29 -07:00
reboot.c reboot: Implement zfs support 2024-02-12 11:45:37 -07:00