Commit 3c5d5805 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Create the /var/emulab tree.

parent 4a340b9b
......@@ -80,6 +80,7 @@ my @ROOTCPDIRS = ("etc", "root");
my @ROOTMKDIRS = ("dev", "tmp", "var", "usr", "proc", "users", "opt",
"bin", "sbin", "home", $LOCALMNTPNT);
my @ROOTMNTDIRS = ("bin", "sbin", "usr");
my @EMUVARDIRS = ("logs", "db", "jails", "boot", "lock");
my $VNFILEMBS = 64;
my $MAXVNDEVS = 10;
my $IP;
......@@ -330,6 +331,20 @@ sub mkrootfs($)
"-p $path/root/var >/dev/null 2>&1");
mysystem("mkdir -p $path/root/$path");
#
# Make the emulab directories since they are not in the mtree file.
#
if (! -e "$path/root/var/emulab") {
mkdir("$path/root/var/emulab", 0755) or
fatal("Could not mkdir 'emulab' in $path/root/var: $!");
}
foreach my $dir (@EMUVARDIRS) {
if (! -e "$path/root/var/emulab/$dir") {
mkdir("$path/root/var/emulab/$dir", 0755) or
fatal("Could not mkdir 'dir' in $path/root/var/emulab: $!");
}
}
#
# Get a list of all the plain files and create zero length versions
# in the new var.
......
Markdown is supported
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