freebsd-src/sbin
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
..
adjkerntz Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
bectl libbe: handle destroying/renaming temporary/bootonce boot environments 2024-01-29 10:07:49 -05:00
bsdlabel bsdlabel: limit to 8 partitions 2024-01-22 21:17:23 -05:00
camcontrol camcontrol: add support for Toshiba drive firmware update 2023-12-29 14:23:51 -05:00
ccdconfig ccdconfig: remove obsolete references to BSD disklabels 2024-01-24 12:51:45 -05:00
clri Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
comcontrol sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
conscontrol sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ddb sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
decryptcore sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
devd devd: Don't install autofs.conf with WITHOUT_AUTOFS 2023-12-22 15:27:50 +01:00
devfs sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
devmatch sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
dhclient Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
dmesg Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
dump sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
dumpfs Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
dumpon Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
etherswitchcfg sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
fdisk sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ffsinfo Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
fsck sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
fsck_ffs sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
fsck_msdosfs fsck_msdosfs: do not call checksize() if the cluster is bad 2024-01-21 01:20:24 +02:00
fsdb sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
fsirand Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
gbde Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
geom sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ggate Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
growfs Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
gvinum gvinum(8): Fix a typo 2023-12-26 09:12:27 -07:00
hastctl sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
hastd sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ifconfig ifconfig: a typo fixed in the man page 2024-02-09 01:40:00 +00:00
init Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
ipf ipf: Fix some typos 2024-02-02 21:36:27 -07:00
ipfw dummynet: add simple gilbert-elliott channel model 2023-12-17 13:20:45 +01:00
kldconfig sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
kldload Add kenv .Xr in kldload(8) and loader.conf(5) 2023-12-20 21:17:38 -07:00
kldstat sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
kldunload sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
ldconfig Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
md5 md5: Enter capability mode earlier 2024-01-16 09:38:53 -05:00
mdconfig sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
mdmfs sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
mknod Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
mksnap_ffs Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mount mount: document atime option 2024-01-24 14:55:54 -05:00
mount_cd9660 cd9660: Add support for mask,dirmask,uid,gid options 2024-01-12 14:51:31 -08:00
mount_fusefs sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
mount_msdosfs Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
mount_nfs Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
mount_nullfs Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
mount_udf Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
mount_unionfs Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
natd Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
newfs sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
newfs_msdos newfs_msdos.8: example for specific cluster size 2024-01-21 21:39:16 -08:00
nfsiod Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
nos-tun Purge more stray embedded $FreeBSD$ strings 2023-09-25 07:54:56 -07:00
nvmecontrol nvmecontrol: Use NVMEF macro to construct fields 2024-01-29 11:01:46 -08:00
pfctl pf: implement addrule via netlink 2024-02-02 17:55:16 +01:00
pfilctl sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pflogd Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pflowctl pflowctl: add missing break to case 's' 2024-02-01 17:03:12 -05:00
ping sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
quotacheck Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
rcorder sccs: Manual changes 2023-11-26 22:23:58 -07:00
reboot reboot: Implement zfs support 2024-02-12 11:45:37 -07:00
recoverdisk Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
resolvconf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
restore sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
route route tests: Serialize 2024-01-27 13:51:14 -05:00
routed sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
rtsol Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
savecore sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
setkey setkey(8): make the policy specification more readable 2023-10-31 06:07:10 +02:00
shutdown Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
swapon Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
sysctl sysctl.8: fix format typo 2024-01-23 16:40:14 +01:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tunefs Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
umount umount: Add -d option to detach md devices 2024-02-02 18:35:00 -07:00
veriexec Add mac_grantbylabel 2023-08-24 17:42:11 -07:00
zfsbootcfg zfsbootcfg: Remove bogus CFLAGS 2024-02-12 11:44:22 -07:00
Makefile pflow: import from OpenBSD 2024-01-16 09:45:53 +01:00
Makefile.amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.arm Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.i386 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc sbin: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
Makefile.powerpc64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00