summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-10-09 06:28:28 +0000
committerjkh <jkh@FreeBSD.org>1998-10-09 06:28:28 +0000
commit927ef14a2ff9d6f8955bac66c59718ecd5cce17b (patch)
treeab539b0204405a1cbb7e35ad13f708f745b15b68
parentff1c526f59e134281466e5f499b1426f155d5163 (diff)
downloadFreeBSD-src-927ef14a2ff9d6f8955bac66c59718ecd5cce17b.zip
FreeBSD-src-927ef14a2ff9d6f8955bac66c59718ecd5cce17b.tar.gz
Initialize boot configuration files on floppy correctly. We now
support 3 kinds of floppies: boot+mfs (standard), boot, mfs.
-rw-r--r--release/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/release/Makefile b/release/Makefile
index 7348486..22f4b75 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.409 1998/10/08 10:02:28 jkh Exp $
+# $Id: Makefile,v 1.410 1998/10/08 10:18:55 jkh Exp $
#
# make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ]
#
@@ -716,11 +716,18 @@ doMFSKERN:
@mkdir ${RD}/boot.${FSIMAGE}
@mv ${RD}/kernels/BOOTMFS ${RD}/kernels/BOOTMFS.${FSIMAGE}
@cp ${RD}/kernels/BOOTMFS.${FSIMAGE} ${RD}/boot.${FSIMAGE}/kernel
- @mkdir -p ${RD}/boot.${FSIMAGE}/boot
.if exists(/boot/loader) && !defined(_MFSKERN)
+ @mkdir -p ${RD}/boot.${FSIMAGE}/boot
@cp /boot/* ${RD}/boot.${FSIMAGE}/boot
+ @echo "load /kernel" > ${RD}/boot.${FSIMAGE}/boot/boot.conf
+ @echo "echo Please insert MFS root floppy and press enter." >> ${RD}/boot.${FSIMAGE}/boot/boot.conf
+ @echo "read" >> ${RD}/boot.${FSIMAGE}/boot/boot.conf
+ @echo "load -t mfs_root /mfsroot" >> ${RD}/boot.${FSIMAGE}/boot/boot.conf
+ @echo "boot" >> ${RD}/boot.${FSIMAGE}/boot/boot.conf
+.if ${MACHINE_ARCH} != "alpha"
+ @echo "/boot/loader" >${RD}/boot.${FSIMAGE}/boot.config
.endif
-.if defined(BOOT_CONFIG)
+.elif defined(BOOT_CONFIG)
@echo "${BOOT_CONFIG}" >${RD}/boot.${FSIMAGE}/boot.config
.endif
@vnconfig /dev/${VNDEVICE} fs-image.${FSIMAGE}
OpenPOWER on IntegriCloud