From bbce64239a7dd61337234b9c49364aa4c0a67b3c Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 10 Dec 2001 06:18:26 +0000 Subject: [PATCH] Convert to minimal /dev with the rest generated at bootup on an mfs mounted dir --- distrib/macppc/floppies/ramdisk/dot.profile | 11 ++++++++++- distrib/macppc/floppies/ramdisk/list | 9 ++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/distrib/macppc/floppies/ramdisk/dot.profile b/distrib/macppc/floppies/ramdisk/dot.profile index 0033e70e5f4b..f9faf065b62b 100644 --- a/distrib/macppc/floppies/ramdisk/dot.profile +++ b/distrib/macppc/floppies/ramdisk/dot.profile @@ -1,4 +1,4 @@ -# $NetBSD: dot.profile,v 1.10 2000/07/24 09:15:21 tsubai Exp $ +# $NetBSD: dot.profile,v 1.11 2001/12/10 06:18:26 jmc Exp $ # # Copyright (c) 1995 Jason R. Thorpe # Copyright (c) 1994 Christopher G. Demetriou @@ -50,6 +50,15 @@ if [ "X${DONEPROFILE}" = "X" ]; then echo 'erase ^H, werase ^W, kill ^U, intr ^C, status ^T' stty newcrt werase ^W intr ^C kill ^U erase ^H status ^T 38400 + # Create real /dev + echo 'Creating real /dev (this may take a while) ...' + mount -t mfs swap /dev + gzcat /MAKEDEV.gz > /dev/MAKEDEV + cd /dev + sh MAKEDEV all 2> /dev/null + cd .. + echo 'Done.' + # mount root read-write mount -u /dev/md0a / diff --git a/distrib/macppc/floppies/ramdisk/list b/distrib/macppc/floppies/ramdisk/list index dd7f9808b4ec..8b27c2cef271 100644 --- a/distrib/macppc/floppies/ramdisk/list +++ b/distrib/macppc/floppies/ramdisk/list @@ -1,4 +1,4 @@ -# $NetBSD: list,v 1.12 2001/11/11 07:46:46 jmc Exp $ +# $NetBSD: list,v 1.13 2001/12/10 06:18:26 jmc Exp $ COPY ${CURDIR}/../../../../etc/group etc/group COPY ${CURDIR}/../../../../etc/master.passwd etc/master.passwd @@ -63,10 +63,9 @@ LINK ramdiskbin usr/sbin/chown LINK ramdiskbin usr/sbin/chroot SPECIAL rm ramdiskbin -# copy the MAKEDEV script and make some devices -COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV -SPECIAL cd dev; sh MAKEDEV floppy -SPECIAL rm dev/MAKEDEV +# make some devices +SPECIAL cd dev; sh ${DESTDIR}/dev/MAKEDEV std +SPECIAL gzip -9 -c ${DESTDIR}/dev/MAKEDEV > MAKEDEV.gz # we need the boot blocks /usr/mdec COPY ${DESTDIR}/usr/mdec/ofwboot usr/mdec/ofwboot