Source-Changes-HG archive

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

[src/trunk]: src/etc When making devices for the ramdisk, instead of making c...



details:   https://anonhg.NetBSD.org/src/rev/e57f2dad4776
branches:  trunk
changeset: 532877:e57f2dad4776
user:      fredette <fredette%NetBSD.org@localhost>
date:      Mon Jun 17 13:30:39 2002 +0000

description:
When making devices for the ramdisk, instead of making character
devices for CD-ROMs, which aren't useful on the ramdisk, make
block devices instead.  This makes it easier to boot a CD-ROM
and install a miniroot from same.

diffstat:

 etc/etc.sun2/MAKEDEV |  13 ++++++++-----
 etc/etc.sun3/MAKEDEV |  13 ++++++++-----
 2 files changed, 16 insertions(+), 10 deletions(-)

diffs (76 lines):

diff -r 5d75f15dc737 -r e57f2dad4776 etc/etc.sun2/MAKEDEV
--- a/etc/etc.sun2/MAKEDEV      Mon Jun 17 10:50:01 2002 +0000
+++ b/etc/etc.sun2/MAKEDEV      Mon Jun 17 13:30:39 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.12 2002/04/22 21:09:14 fredette Exp $
+#      $NetBSD: MAKEDEV,v 1.13 2002/06/17 13:30:39 fredette Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -75,8 +75,9 @@
 eo=
 
 # when we're making devices for the ramdisk, we conserve
-# inodes by not making block devices or devices for 
-# partitions greater than d:
+# inodes by not making block devices for disks, character 
+# devices for CD-ROMs, or any device for a partition greater
+# than d:
 __ramdisk=false
 
 # mk name b/c major minor [mode] [group]
@@ -227,10 +228,12 @@
                set -- $part
                IFS="$tmp" ; unset tmp
                minor=$(($offset + $2))
-               if ! $__ramdisk; then 
+               if ! $__ramdisk || test $name = cd; then 
                        mk  $name$unit$1 b $blk $minor 640 operator
                fi
-               mk r$name$unit$1 c $chr $minor 640 operator
+               if ! $__ramdisk || test $name != cd; then
+                       mk r$name$unit$1 c $chr $minor 640 operator
+               fi
        )
        done
        ;;
diff -r 5d75f15dc737 -r e57f2dad4776 etc/etc.sun3/MAKEDEV
--- a/etc/etc.sun3/MAKEDEV      Mon Jun 17 10:50:01 2002 +0000
+++ b/etc/etc.sun3/MAKEDEV      Mon Jun 17 13:30:39 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.43 2002/05/17 16:32:18 lukem Exp $
+#      $NetBSD: MAKEDEV,v 1.44 2002/06/17 13:30:39 fredette Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -76,8 +76,9 @@
 eo=
 
 # when we're making devices for the ramdisk, we conserve
-# inodes by not making block devices or devices for 
-# partitions greater than d:
+# inodes by not making block devices for disks, character
+# devices for CD-ROMs, or any device for a partition greater  
+# than d:
 __ramdisk=false
 
 # mk name b/c major minor [mode] [group]
@@ -247,10 +248,12 @@
                set -- $part
                IFS="$tmp" ; unset tmp
                minor=$(($offset + $2))
-               if ! $__ramdisk; then 
+               if ! $__ramdisk || test $name = cd; then 
                        mk  $name$unit$1 b $blk $minor 640 operator
                fi
-               mk r$name$unit$1 c $chr $minor 640 operator
+               if ! $__ramdisk || test $name != cd; then 
+                       mk r$name$unit$1 c $chr $minor 640 operator
+               fi
        )
        done
        ;;



Home | Main Index | Thread Index | Old Index