Source-Changes-HG archive

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

[src/trunk]: src/distrib kernfs no longer needs a hacky workaround to make ro...



details:   https://anonhg.NetBSD.org/src/rev/1bc2ecd8afa6
branches:  trunk
changeset: 745252:1bc2ecd8afa6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Feb 26 16:00:48 2020 +0000

description:
kernfs no longer needs a hacky workaround to make rootdev appear.

diffstat:

 distrib/amd64/cdroms/etc.rc             |  5 +----
 distrib/amd64/installimage/etc.rc       |  5 +----
 distrib/amd64/uefi-installimage/etc.rc  |  5 +----
 distrib/i386/cdroms/etc.rc              |  5 +----
 distrib/i386/installimage/etc.rc        |  5 +----
 distrib/sparc64/cdroms/installcd/etc.rc |  5 +----
 distrib/sparc64/instfs/dot.profile      |  5 +----
 distrib/vax/cdroms/installcd/etc.rc     |  5 +----
 8 files changed, 8 insertions(+), 32 deletions(-)

diffs (152 lines):

diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/amd64/cdroms/etc.rc
--- a/distrib/amd64/cdroms/etc.rc       Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/amd64/cdroms/etc.rc       Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.2 2014/05/19 15:57:04 martin Exp $
+# $NetBSD: etc.rc,v 1.3 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 # mount a few tempfs to allow modifications over the CD contents
 mount -t tmpfs tmpfs /tmp
 mount -t tmpfs tmpfs /var
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/amd64/installimage/etc.rc
--- a/distrib/amd64/installimage/etc.rc Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/amd64/installimage/etc.rc Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.1 2012/01/22 03:53:29 tsutsui Exp $
+# $NetBSD: etc.rc,v 1.2 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 mount -u /
 mount -t tmpfs tmpfs /tmp
 
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/amd64/uefi-installimage/etc.rc
--- a/distrib/amd64/uefi-installimage/etc.rc    Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/amd64/uefi-installimage/etc.rc    Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.1 2017/01/24 11:16:50 nonaka Exp $
+# $NetBSD: etc.rc,v 1.2 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 mount -u /
 mount -t tmpfs tmpfs /tmp
 
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/i386/cdroms/etc.rc
--- a/distrib/i386/cdroms/etc.rc        Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/i386/cdroms/etc.rc        Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.2 2014/05/19 15:57:05 martin Exp $
+# $NetBSD: etc.rc,v 1.3 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 # mount a few tempfs to allow modifications over the CD contents
 mount -t tmpfs tmpfs /tmp
 mount -t tmpfs tmpfs /var
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/i386/installimage/etc.rc
--- a/distrib/i386/installimage/etc.rc  Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/i386/installimage/etc.rc  Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.1 2012/01/22 03:53:30 tsutsui Exp $
+# $NetBSD: etc.rc,v 1.2 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 mount -u /
 mount -t tmpfs tmpfs /tmp
 
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/sparc64/cdroms/installcd/etc.rc
--- a/distrib/sparc64/cdroms/installcd/etc.rc   Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/sparc64/cdroms/installcd/etc.rc   Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.2 2014/05/19 15:57:05 martin Exp $
+# $NetBSD: etc.rc,v 1.3 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 # mount a few tempfs to allow modifications over the CD contents
 mount -t tmpfs tmpfs /tmp
 mount -t tmpfs tmpfs /var
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/sparc64/instfs/dot.profile
--- a/distrib/sparc64/instfs/dot.profile        Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/sparc64/instfs/dot.profile        Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.8 2020/01/09 19:17:45 martin Exp $
+# $NetBSD: dot.profile,v 1.9 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -91,9 +91,6 @@
        # examine the dmesg state
        mount -t kernfs /kern /kern
 
-       # hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-       ls -l /dev/* > /dev/null 2>&1
-
        # mount the ramdisk read write
        mount -t ffs -u /kern/rootdev /
 
diff -r cac6afc0ce54 -r 1bc2ecd8afa6 distrib/vax/cdroms/installcd/etc.rc
--- a/distrib/vax/cdroms/installcd/etc.rc       Wed Feb 26 15:44:57 2020 +0000
+++ b/distrib/vax/cdroms/installcd/etc.rc       Wed Feb 26 16:00:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: etc.rc,v 1.3 2014/05/30 13:19:42 martin Exp $
+# $NetBSD: etc.rc,v 1.4 2020/02/26 16:00:48 riastradh Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -36,9 +36,6 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
 
-# hack to get around bugs in kernfs's rootdev/rrootdev lookup.
-ls -l /dev/* > /dev/null 2>&1
-
 lowmemfail()
 {
        cat << "EOM"



Home | Main Index | Thread Index | Old Index