From: kn Date: Sat, 25 Mar 2023 18:27:28 +0000 (+0000) Subject: simplify final MAKEDEV call X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c0361021eba61513e59973dd6491c095e10ce246;p=openbsd simplify final MAKEDEV call No need to loop here, the script takes multiple args. OK tb afresh1 --- 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 @@ -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