diff options
author | trasz <trasz@FreeBSD.org> | 2016-01-12 10:14:57 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-01-12 10:14:57 +0000 |
commit | 3aea2923e9c1218bee7ad00506dcb6857d7eaaa4 (patch) | |
tree | 2a2818d1b9f59a972887118404cfbd3d950a2c94 /sbin/init/Makefile | |
parent | 355c35a189c2f841c4660bf6e63e376f77a2c04b (diff) | |
download | FreeBSD-src-3aea2923e9c1218bee7ad00506dcb6857d7eaaa4.zip FreeBSD-src-3aea2923e9c1218bee7ad00506dcb6857d7eaaa4.tar.gz |
MFC r290548:
Userspace part of reroot support. This makes it possible to change
the root filesystem without full reboot, using "reboot -r". This can
be used to to eg. boot from a temporary md_image preloaded by loader(8),
setup an iSCSI session, and continue booting from rootfs mounted over
iSCSI.
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3693
Diffstat (limited to 'sbin/init/Makefile')
-rw-r--r-- | sbin/init/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/init/Makefile b/sbin/init/Makefile index 7497a4b..eebaf59 100644 --- a/sbin/init/Makefile +++ b/sbin/init/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= init +SRCS= init.c getmntopts.c MAN= init.8 PRECIOUSPROG= INSTALLFLAGS=-b -B.bak @@ -9,6 +10,11 @@ CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT DPADD= ${LIBUTIL} ${LIBCRYPT} LDADD= -lutil -lcrypt +# Needed for getmntopts.c +MOUNT= ${.CURDIR}/../../sbin/mount +CFLAGS+=-I${MOUNT} +.PATH: ${MOUNT} + NO_SHARED?= YES .include <bsd.prog.mk> |