Only put std devices onto the image's /dev.
Then once booted mount mfs onto /dev and make a full device tree. This gets around the silliness of running out of either space/inodes all the time when building the floppy images. Tested this on all combinations of floppies.
This commit is contained in:
parent
16915b1818
commit
bcdff193d6
@ -1,4 +1,4 @@
|
||||
# $NetBSD: dot.profile,v 1.1 2000/09/27 16:04:15 fvdl Exp $
|
||||
# $NetBSD: dot.profile,v 1.2 2001/01/24 18:18:57 jmc Exp $
|
||||
#
|
||||
# Copyright (c) 1997 Perry E. Metzger
|
||||
# Copyright (c) 1994 Christopher G. Demetriou
|
||||
@ -59,6 +59,13 @@ if [ "X${DONEPROFILE}" = "X" ]; then
|
||||
stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
|
||||
echo ''
|
||||
|
||||
# Create real /dev
|
||||
mount -t mfs swap /dev
|
||||
gzcat /MAKEDEV.gz > /dev/MAKEDEV
|
||||
cd /dev
|
||||
sh MAKEDEV all 2> /dev/null
|
||||
cd ..
|
||||
|
||||
# mount the ramdisk read write
|
||||
mount -u $ROOTDEV /
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: list,v 1.3 2000/12/14 16:04:51 jmc Exp $
|
||||
# $NetBSD: list,v 1.4 2001/01/24 18:18:57 jmc Exp $
|
||||
|
||||
# various files that we need in /etc for the install
|
||||
COPY ${CURDIR}/../../../../etc/group etc/group
|
||||
@ -52,6 +52,7 @@ LINK ramdiskbin sbin/mount
|
||||
LINK ramdiskbin sbin/mount_cd9660
|
||||
LINK ramdiskbin sbin/mount_ext2fs
|
||||
LINK ramdiskbin sbin/mount_ffs
|
||||
LINK ramdiskbin sbin/mount_mfs
|
||||
LINK ramdiskbin sbin/mount_kernfs
|
||||
LINK ramdiskbin sbin/mount_msdos
|
||||
LINK ramdiskbin sbin/mount_nfs
|
||||
@ -91,7 +92,8 @@ LINK ramdiskbin usr/sbin/wiconfig
|
||||
SPECIAL /bin/rm ramdiskbin
|
||||
|
||||
# make some devices
|
||||
SPECIAL cd dev; sh ${CURDIR}/../../../../etc/etc.i386/MAKEDEV ramdisk bpf0 bpf1
|
||||
SPECIAL cd dev; sh ${CURDIR}/../../../../etc/etc.i386/MAKEDEV std
|
||||
SPECIAL gzip -9 -c ${CURDIR}/../../../../etc/etc.i386/MAKEDEV > MAKEDEV.gz
|
||||
|
||||
# we need the boot block in /usr/mdec + the MBR copy
|
||||
COPY ${DESTDIR}/usr/mdec/biosboot_com0.sym usr/mdec/biosboot_com0.sym
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: ramdiskbin.conf,v 1.3 2000/10/18 21:03:41 fvdl Exp $
|
||||
# $NetBSD: ramdiskbin.conf,v 1.4 2001/01/24 18:18:57 jmc Exp $
|
||||
#
|
||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||
#
|
||||
@ -47,6 +47,8 @@ ln mount_nfs nfs
|
||||
ln mount_kernfs kernfs
|
||||
ln mount_ntfs ntfs
|
||||
ln reboot halt
|
||||
ln newfs mount_mfs
|
||||
|
||||
|
||||
# libhack.o is built by Makefile & included Makefile.inc
|
||||
libs libhack.o -lbz2 -ledit -lutil -lcurses -ltermcap -lrmt -lcrypt -ll -lm
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: dot.profile,v 1.1 2000/09/27 16:04:15 fvdl Exp $
|
||||
# $NetBSD: dot.profile,v 1.2 2001/01/24 18:18:57 jmc Exp $
|
||||
#
|
||||
# Copyright (c) 1994 Christopher G. Demetriou
|
||||
# Copyright (c) 1997 Perry E. Metzger
|
||||
@ -54,6 +54,13 @@ if [ "X${DONEPROFILE}" = "X" ]; then
|
||||
stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
|
||||
echo ''
|
||||
|
||||
# Create real /dev
|
||||
mount -t mfs swap /dev
|
||||
gzcat /MAKEDEV.gz > /dev/MAKEDEV
|
||||
cd /dev
|
||||
sh MAKEDEV all 2> /dev/null
|
||||
cd ..
|
||||
|
||||
# mount the ramdisk read write
|
||||
mount -u $ROOTDEV /
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: list,v 1.2 2000/11/16 13:21:06 simonb Exp $
|
||||
# $NetBSD: list,v 1.3 2001/01/24 18:18:57 jmc Exp $
|
||||
|
||||
# various files that we need in /etc for the install
|
||||
COPY ${CURDIR}/../../../../etc/group etc/group
|
||||
@ -45,6 +45,7 @@ LINK ramdiskbin sbin/mknod
|
||||
LINK ramdiskbin sbin/mount
|
||||
LINK ramdiskbin sbin/mount_cd9660
|
||||
LINK ramdiskbin sbin/mount_ffs
|
||||
LINK ramdiskbin sbin/mount_mfs
|
||||
LINK ramdiskbin sbin/mount_kernfs
|
||||
LINK ramdiskbin sbin/mount_msdos
|
||||
LINK ramdiskbin sbin/mount_nfs
|
||||
@ -79,7 +80,8 @@ LINK ramdiskbin usr/sbin/wiconfig
|
||||
SPECIAL /bin/rm ramdiskbin
|
||||
|
||||
# make some devices
|
||||
SPECIAL cd dev; sh ${CURDIR}/../../../../etc/etc.i386/MAKEDEV ramdisk
|
||||
SPECIAL cd dev; sh ${CURDIR}/../../../../etc/etc.i386/MAKEDEV std
|
||||
SPECIAL gzip -9 -c ${CURDIR}/../../../../etc/etc.i386/MAKEDEV > MAKEDEV.gz
|
||||
|
||||
# we need the boot block in /usr/mdec + the MBR copy
|
||||
COPY ${DESTDIR}/usr/mdec/biosboot.sym usr/mdec/biosboot.sym
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: ramdiskbin.conf,v 1.2 2000/12/14 22:28:31 jmc Exp $
|
||||
# $NetBSD: ramdiskbin.conf,v 1.3 2001/01/24 18:18:57 jmc Exp $
|
||||
#
|
||||
# ramdiskbin.conf - unified binary for the install ramdisk
|
||||
#
|
||||
@ -33,6 +33,7 @@ ln sh -sh # init invokes the shell this way
|
||||
ln reboot halt
|
||||
ln dump rdump
|
||||
ln restore rrestore
|
||||
ln newfs mount_mfs
|
||||
|
||||
# libhack.o is built by Makefile & included Makefile.inc
|
||||
libs libhack.o -lbz2 -ltermcap -lutil -lrmt -lcrypt -ll -lm
|
||||
|
Loading…
Reference in New Issue
Block a user