Commit 162ad96e authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Test for vn device before running MAKEDEV on it.

parent a40f4d04
......@@ -331,7 +331,9 @@ sub mkrootfs($)
#
for (my $i = 0; $i < $MAXVNDEVS; $i++) {
# Make sure the dev entries exist!
mysystem("(cd /dev; ./MAKEDEV vn${i})");
if (! -e "vn${i}") {
mysystem("(cd /dev; ./MAKEDEV vn${i})");
}
system("vnconfig -c vn${i} root.vnode");
if (! $?) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment