summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-04-09 15:21:29 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-04-09 15:21:29 +0000
commit6dfece2fa98e5477514f7937651d22a4b981aadb (patch)
treed6e094ce9b817e03a07ad561844acd8d5f5ceed3 /distrib
parent15eaafaae61117bad7e10eeca8c6d200493e8a5c (diff)
Create on the installed system all disk, cd and tape devices found in
dmesg.boot, not just the ones that happen to be referenced by the install process. ok deraadt@ miod@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/miniroot/install.sub13
1 files changed, 4 insertions, 9 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index e40ffa618a6..e2c5d88981c 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.374 2005/04/09 00:47:58 krw Exp $
+# $OpenBSD: install.sub,v 1.375 2005/04/09 15:21:28 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2005 Todd Miller, Theo de Raadt, Ken Westerback
@@ -447,8 +447,6 @@ makedev() {
fi
cd /dev ; sh MAKEDEV $_dev || return 1 ; cd - >/dev/null
-
- DEVSMADE=$(addel $_dev $DEVSMADE)
}
# Create an entry in the hosts file. If an entry with the
@@ -1608,9 +1606,9 @@ finish_up() {
echo -n "Making all device nodes..."
cd /mnt/dev
sh MAKEDEV all
- # Make sure any devices we added as a result of makedev() calls
- # are recreated in installed system.
- for _dev in $DEVSMADE; do
+ # Make sure any devices we found during probe are created in the
+ # installed system.
+ for _dev in $DKDEVS $CDDEVS $MTDEVS; do
sh MAKEDEV $_dev
done
echo "done."
@@ -1669,9 +1667,6 @@ MTDEVS=$(scan_dmesg "${MDMTDEVS:-/^[cmsw]t[0-9][0-9]* /s/ .*//p}")
IFDEVS=$(get_ifdevs)
SERIALDEV=$(get_serialdev)
-# Devices created with makedev().
-DEVSMADE=
-
# Selected sets will be installed in the order they are listed in $THESETS.
# Ensure that siteXX.tgz is the *last* set listed so its contents overwrite
# the contents of the other sets, not the other way around.