mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Since init become dynamically linked, reroot appeared to be broken because init copies itself into a transient tmpfs mount to continue controlling execution right after the reboot(REROOT) syscall. Because the binary is dynamically linked, it cannot be properly executed. Provide a minimal static binary 'reroot_seed' embedded into the init as byte stream, which performs what the 'init -r' did, namely, the second phase reroot. For the static build of init as part of the /rescue crunch, keep the inline reroot code. Reported and tested by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58164
100 lines
1.4 KiB
Makefile
100 lines
1.4 KiB
Makefile
.include <src.opts.mk>
|
|
|
|
SUBDIR=adjkerntz \
|
|
camcontrol \
|
|
clri \
|
|
comcontrol \
|
|
conscontrol \
|
|
ddb \
|
|
devd \
|
|
devfs \
|
|
devmatch \
|
|
dhclient \
|
|
dmesg \
|
|
dump \
|
|
dumpfs \
|
|
dumpon \
|
|
etherswitchcfg \
|
|
ffsinfo \
|
|
fsck \
|
|
fsck_ffs \
|
|
fsck_msdosfs \
|
|
fsdb \
|
|
fsirand \
|
|
geom \
|
|
ggate \
|
|
growfs \
|
|
ifconfig \
|
|
reroot_seed \
|
|
.WAIT \
|
|
init \
|
|
kldconfig \
|
|
kldload \
|
|
kldstat \
|
|
kldunload \
|
|
ldconfig \
|
|
md5 \
|
|
mdconfig \
|
|
mdmfs \
|
|
mknod \
|
|
mksnap_ffs \
|
|
mount \
|
|
mount_cd9660 \
|
|
mount_fusefs \
|
|
mount_msdosfs \
|
|
mount_nfs \
|
|
mount_nullfs \
|
|
mount_udf \
|
|
mount_unionfs \
|
|
newfs \
|
|
newfs_msdos \
|
|
nfsiod \
|
|
nos-tun \
|
|
nvmecontrol \
|
|
pfilctl \
|
|
rcorder \
|
|
reboot \
|
|
recoverdisk \
|
|
resolvconf \
|
|
restore \
|
|
route \
|
|
savecore \
|
|
setkey \
|
|
shutdown \
|
|
swapon \
|
|
sysctl \
|
|
tunefs \
|
|
umbctl \
|
|
umount
|
|
|
|
.if ${MK_INET} != "no" || ${MK_INET6} != "no"
|
|
SUBDIR+= ping
|
|
.endif
|
|
|
|
SUBDIR.${MK_CCD}+= ccdconfig
|
|
SUBDIR.${MK_HAST}+= hastctl
|
|
SUBDIR.${MK_HAST}+= hastd
|
|
SUBDIR.${MK_INET6}+= rtsol
|
|
SUBDIR.${MK_IPFILTER}+= ipf
|
|
SUBDIR.${MK_IPFW}+= ipfw
|
|
SUBDIR.${MK_IPFW}+= natd
|
|
SUBDIR.${MK_OPENSSL}+= decryptcore
|
|
SUBDIR.${MK_PF}+= pfctl
|
|
SUBDIR.${MK_PF}+= pflogd
|
|
SUBDIR.${MK_PF}+= pflowctl
|
|
SUBDIR.${MK_QUOTAS}+= quotacheck
|
|
SUBDIR.${MK_ROUTED}+= routed
|
|
SUBDIR.${MK_VERIEXEC}+= veriexec
|
|
SUBDIR.${MK_ZFS}+= bectl
|
|
SUBDIR.${MK_ZFS}+= zfsbootcfg
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.arch.inc.mk>
|
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.include <bsd.subdir.mk>
|