summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2023-03-25 18:27:29 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2023-03-25 18:27:29 +0000
commit37b75b7bc6392da17acecc1df540dfd31e8e45a5 (patch)
tree8d12e36a42e7c01af2d99408703cec4ec35dfb24 /distrib/miniroot/install.sub
parente8515a93eb1b198cb7b8d66ae5356c60339f288d (diff)
simplify final MAKEDEV call
No need to loop here, the script takes multiple args. OK tb afresh1
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub12
1 files changed, 4 insertions, 8 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index c5d0d7f1299..5d60c2f5dc4 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.1234 2023/03/10 10:33:40 kn Exp $
+# $OpenBSD: install.sub,v 1.1235 2023/03/25 18:27:28 kn Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -2931,13 +2931,9 @@ finish_up() {
fi
echo -n "Making all device nodes..."
- (cd /mnt/dev; sh MAKEDEV all
- # Make sure any devices we found during probe are created in the
- # installed system.
- for _dev in $(get_dkdevs) $(get_cddevs); do
- sh MAKEDEV $_dev
- done
- )
+ # Make sure any devices we found during probe are created in the
+ # installed system.
+ (cd /mnt/dev; sh MAKEDEV $(get_dkdevs) $(get_cddevs) all)
echo " done."
# We may run some programs in chroot, and some of them might be