summaryrefslogtreecommitdiff
path: root/distrib/mvme88k/miniroot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-09 20:04:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-04-09 20:04:10 +0000
commit169e4ff046c12a691d3d7185d5a5e91ba3e404d2 (patch)
tree281a1c71a0c525f22dfd2700d025986a9092f0f5 /distrib/mvme88k/miniroot
parentee9fc2dcb402c3dfbaad3988c00852037584ef6c (diff)
miniroots may have suprising rootdevs. Cope.
Diffstat (limited to 'distrib/mvme88k/miniroot')
-rw-r--r--distrib/mvme88k/miniroot/dot.profile6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/mvme88k/miniroot/dot.profile b/distrib/mvme88k/miniroot/dot.profile
index 310a930a333..f84d3868391 100644
--- a/distrib/mvme88k/miniroot/dot.profile
+++ b/distrib/mvme88k/miniroot/dot.profile
@@ -1,4 +1,4 @@
-# $OpenBSD: dot.profile,v 1.9 2002/04/05 03:13:18 deraadt Exp $
+# $OpenBSD: dot.profile,v 1.10 2002/04/09 20:04:09 deraadt Exp $
# $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
@@ -43,10 +43,12 @@ set -o emacs # emacs-style command line editing
TERMS="sun vt* pcvt* dumb"
TERM=vt220
+rootdisk=`dmesg|grep "^root on"|{ o=;while read x y z t;do o=/dev/$z;done;echo $o;}`
+
if [ "X${DONEPROFILE}" = "X" ]; then
DONEPROFILE=YES
- mount -u /dev/rd0a /
+ mount -u ${rootdisk:-/dev/rd0a} /
# set up some sane defaults
echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T'