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

This commit is contained in:
riastradh 2020-02-26 16:00:48 +00:00
parent fcfd803846
commit d823475ff2
8 changed files with 8 additions and 32 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 @@ EOM
# 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 /

View File

@ -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"