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
f2b95faa
Commit
f2b95faa
authored
Mar 12, 2010
by
Mike Hibler
Browse files
Tweaks based on attempted install
parent
ce05b031
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.mkelab
View file @
f2b95faa
...
...
@@ -82,7 +82,6 @@ if (@ARGV) {
}
# More stuff we need below.
my
$TBDIR
;
my
$domain
;
my
(
$pid
,
$eid
,
undef
)
=
check_nickname
();
my
$file
=
TMCREATOR
();
...
...
@@ -616,6 +615,7 @@ sub SetupFsNode()
#
mysystem
("
mount
$shareslice
$FSDIR
/share
");
mysystem
("
echo
\"
$shareslice
$FSDIR
/share ufs rw 0 2
\"
>> /etc/fstab
");
mysystem
("
ln -s
$FSDIR
/share /share
");
if
(
$SCRATCHFS
)
{
mysystem
("
cd /; mv -f scratch scratch.old
")
...
...
@@ -821,6 +821,7 @@ sub SetupOpsNode($)
my
$fromscratch
=
$emulabconfig
{"
LOADELABSOURCE
"};
my
$installpkgs
=
$emulabconfig
{"
LOADPACKAGES
"};
$installpkgs
=
0
;
print
"
Setting up an
"
.
(
$isfs
?
"
Ops/Fs
"
:
"
Ops
")
.
"
node
";
if
(
$fromscratch
)
{
...
...
@@ -1015,6 +1016,7 @@ sub SetupOpsNode($)
#
mysystem
("
mount
$shareslice
$FSDIR
/share
");
mysystem
("
echo
\"
$shareslice
$FSDIR
/share ufs rw 0 2
\"
>> /etc/fstab
");
mysystem
("
ln -s
$FSDIR
/share /share
");
}
if
(
$SCRATCHFS
)
{
...
...
@@ -2099,7 +2101,7 @@ sub GetEmulabSource($)
#
# Create and optionally populate the main testbed directory.
#
SetupTBDir
(
$$
)
sub
SetupTBDir
($$)
{
my
(
$TBDIR
,
$getsource
)
=
@_
;
...
...
@@ -2111,6 +2113,9 @@ SetupTBDir($$)
if
(
system
("
umount
$TBDIR
")
!=
0
)
{
# not a mounted FS or could not umount it, just move it
mysystem
("
mv
$TBDIR
${TBDIR}
.tmp
");
}
else
{
# was a mounted FS, need to remove it from fstab if present
mysystem
("
sed -i '.orig' -E '
\\
;
\
[
\
[:space:
\
]
\
]
$TBDIR
\
[
\
[:space:
\
]
\
];d' /etc/fstab
");
}
}
mysystem
("
mkdir
$TBDIR
")
...
...
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