Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/macppc/floppies/ramdisk Convert to minimal /dev with...



details:   https://anonhg.NetBSD.org/src/rev/86c354bceb3c
branches:  trunk
changeset: 519054:86c354bceb3c
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Dec 10 06:18:26 2001 +0000

description:
Convert to minimal /dev with the rest generated at bootup on an mfs mounted dir

diffstat:

 distrib/macppc/floppies/ramdisk/dot.profile |  11 ++++++++++-
 distrib/macppc/floppies/ramdisk/list        |   9 ++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r 5e5a263d1a29 -r 86c354bceb3c distrib/macppc/floppies/ramdisk/dot.profile
--- a/distrib/macppc/floppies/ramdisk/dot.profile       Mon Dec 10 06:17:24 2001 +0000
+++ b/distrib/macppc/floppies/ramdisk/dot.profile       Mon Dec 10 06:18:26 2001 +0000
@@ -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 @@
        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 -r 5e5a263d1a29 -r 86c354bceb3c distrib/macppc/floppies/ramdisk/list
--- a/distrib/macppc/floppies/ramdisk/list      Mon Dec 10 06:17:24 2001 +0000
+++ b/distrib/macppc/floppies/ramdisk/list      Mon Dec 10 06:18:26 2001 +0000
@@ -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/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



Home | Main Index | Thread Index | Old Index