Fix installing sets from cdrom if more than one drive is present.
authorrpe <rpe@openbsd.org>
Tue, 19 May 2015 20:12:29 +0000 (20:12 +0000)
committerrpe <rpe@openbsd.org>
Tue, 19 May 2015 20:12:29 +0000 (20:12 +0000)
Run makedev in install_cdrom() to create the necessary device nodes,
which got lost in a recent change.

Found by James Hartley, thanks for the bug report!
OK krw@

distrib/miniroot/install.sub

index 4d3e770..b21e0a7 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.sub,v 1.839 2015/05/18 13:48:37 deraadt Exp $
+#      $OpenBSD: install.sub,v 1.840 2015/05/19 20:12:29 rpe Exp $
 #
 # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
 # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -1345,7 +1345,7 @@ install_mounted_fs() {
 install_cdrom() {
        local _drive=$1
 
-       mount_mnt2 $_drive || return
+       makedev $_drive && mount_mnt2 $_drive || return
 
        install_mounted_fs
 }