Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
3c5d5805
Commit
3c5d5805
authored
Dec 20, 2002
by
Leigh B. Stoller
Browse files
Create the /var/emulab tree.
parent
4a340b9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/freebsd/jail/mkjail.pl
View file @
3c5d5805
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment