diff options
author | ru <ru@FreeBSD.org> | 2003-08-08 21:00:57 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-08-08 21:00:57 +0000 |
commit | 4bf1e96a1e7985d1c04548660983cfb27df99bd2 (patch) | |
tree | a58c8f34539eef203c691163eb2b22ba7b5153a3 /release/Makefile | |
parent | 547619d0d39c2ae94c9cf90796a0606b85f82f7f (diff) | |
download | FreeBSD-src-4bf1e96a1e7985d1c04548660983cfb27df99bd2.zip FreeBSD-src-4bf1e96a1e7985d1c04548660983cfb27df99bd2.tar.gz |
Added the new knob MINIROOT that, when set, causes the creation
of the bootable UFS image, miniroot.ufs, fully identical to the
contents of the "bootonly" CD-ROM. The image is made available
on FTP as miniroot/miniroot.ufs.gz, for resemblance with NetBSD.
This replaces the boot.flp image for sparc64, making the latter
as coming with NO_FLOPPIES.
Reviewed by: jhb
Tested by: hrs
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/release/Makefile b/release/Makefile index c9e7d08..d25d639 100644 --- a/release/Makefile +++ b/release/Makefile @@ -201,12 +201,11 @@ MFSLABEL= auto NO_FLOPPIES= .elif ${TARGET_ARCH} == "sparc64" DISKLABEL= sunlabel -BIGBOOTSIZE= 4096 MFSSIZE= 4096 -BOOTINODE= 8192 MFSINODE= 8192 -BIGBOOTLABEL= auto MFSLABEL= auto +MINIROOT= +NO_FLOPPIES= .elif ${TARGET_ARCH} == "ia64" MFSINODE= 8192 MFSLABEL= auto @@ -249,7 +248,7 @@ CD_DISC2= ${CD}/disc2 # Where the bootstrap ports (see DOCPORTS) get installed. LOCALDIR= /usr/local/bin -.if ${TARGET} != ${MACHINE} +.if ${TARGET} != ${MACHINE} && ${DISKLABEL} == "bsdlabel" DOFS_SH= ${.CURDIR}/scripts/doFS.sh ${DISKLABEL} ${TARGET} .else DOFS_SH= ${.CURDIR}/scripts/doFS.sh ${DISKLABEL} "" @@ -884,6 +883,12 @@ cdrom.1: @echo 'mfsroot_name="/boot/mfsroot"' >> ${CD_DISC2}/boot/loader.conf .if defined(CD_BOOT) @cp -Rp ${CD_DISC2}/boot ${CD_BOOT} +.if defined(MINIROOT) + @mkdir -p ${FD}/miniroot + @sh -e ${DOFS_SH} ${FD}/miniroot/miniroot.ufs \ + ${RD} ${MNT} 0 ${CD_BOOT} 8192 auto + @gzip -9v ${FD}/miniroot/miniroot.ufs +.endif .endif @cp -Rp ${CD_DISC2}/boot ${CD_DISC1} .if ${TARGET} == "i386" && defined(EMUL_BOOT) && !defined(NO_FLOPPIES) |