diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-07-20 05:17:37 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-07-20 05:17:37 +0000 |
commit | 060679ef9ccfb5a7e86dd36f89fe0a57ffc9b150 (patch) | |
tree | c32d520d4dbe018cfceda65394efb2cb478a47d1 /stand/i386/loader | |
parent | dfbd3c8d9197d1adf9d3dde138f9a0ed453608b2 (diff) | |
download | src-060679ef9ccfb5a7e86dd36f89fe0a57ffc9b150.tar.gz src-060679ef9ccfb5a7e86dd36f89fe0a57ffc9b150.zip |
Collapse zfsloader functionality back down into loader.
We no longer really need a separate zfsloader. It was useful when we
were first supporting ZFS and had limited ability to properly boot off
of ZFS without the special boot loader. Now that the boot loader has
matured, go the way loader.efi pioneered and just build one
binary. Change the name of the loader to load in the secondary boot
blocks to be just /boot/loader. Provide a symbolic link from zfsloader
to loader so people who have not upgraded their boot blocks are not
affected. This has the happy benefit of making coexistence easier as
well (fewer binaries in the matrix).
Discussed with: allanjude@, kevans@
RelNotes: Yes
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D16361
Notes
Notes:
svn path=/head/; revision=336532
Diffstat (limited to 'stand/i386/loader')
-rw-r--r-- | stand/i386/loader/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stand/i386/loader/Makefile b/stand/i386/loader/Makefile index 6b86bdd08221..b5dd065f025b 100644 --- a/stand/i386/loader/Makefile +++ b/stand/i386/loader/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +HAVE_ZFS= ${MK_ZFS} + LOADER_NET_SUPPORT?= yes LOADER_NFS_SUPPORT?= yes LOADER_TFTP_SUPPORT?= yes @@ -62,6 +64,9 @@ ${LOADER}: ${LOADER}.bin ${BTXLDR} ${BTXKERN} ${LOADER}.bin: ${LOADER}.sym strip -R .comment -R .note -o ${.TARGET} ${.ALLSRC} +.if ${MK_ZFS} == "yes" +SYMLINKS= ${BINDIR}/${LOADER} ${BINDIR}/zfs${LOADER} +.endif FILES+= ${LOADER} # XXX INSTALLFLAGS_loader= -b FILESMODE_${LOADER}= ${BINMODE} -b |