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
74ccf410
Commit
74ccf410
authored
Nov 29, 2005
by
Mike Hibler
Browse files
Ensure that /usr/ports is not a symlink.
parent
71b75eb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/common/config/rc.mkelab
View file @
74ccf410
...
...
@@ -379,6 +379,15 @@ sub SetupFsNode()
}
print
"
Installing the fs metaport.
\n
";
# Make sure /usr/ports is not a symlink to RO shared space
if
(
-
l
"
/usr/ports
")
{
if
(
!
unlink
("
/usr/ports
")
{
print
"
WARNING: /usr/ports is a symlink, port install may fail
\n
";
}
else
{
mysystem
("
mkdir /usr/ports
");
}
}
$ENV
{"
PKG_PATH
"}
=
$emulabconfig
{
FS_PKG_DIR
};
mysystem
("
pkg_add
$emulabconfig
{FS_PKG} >/tmp/perrs 2>&1
");
...
...
@@ -670,6 +679,16 @@ sub SetupOpsNode($)
SetupFatal
("
Could not get package info from Emulab!
");
}
print
"
Installing the ops metaport.
\n
";
# Make sure /usr/ports is not a symlink to RO shared space
if
(
-
l
"
/usr/ports
")
{
if
(
!
unlink
("
/usr/ports
")
{
print
"
WARNING: /usr/ports is a symlink, port install may fail
\n
";
}
else
{
mysystem
("
mkdir /usr/ports
");
}
}
$ENV
{"
PKG_PATH
"}
=
$emulabconfig
{
OPS_PKG_DIR
};
mysystem
("
pkg_add
$emulabconfig
{OPS_PKG} >/tmp/perrs 2>&1
");
if
(
$WINSUPPORT
)
{
...
...
@@ -992,6 +1011,16 @@ sub SetupBossNode()
SetupFatal
("
Could not get package info from Emulab!
");
}
print
"
Installing the boss metaport.
\n
";
# Make sure /usr/ports is not a symlink to RO shared space
if
(
-
l
"
/usr/ports
")
{
if
(
!
unlink
("
/usr/ports
")
{
print
"
WARNING: /usr/ports is a symlink, port install may fail
\n
";
}
else
{
mysystem
("
mkdir /usr/ports
");
}
}
$ENV
{"
PKG_PATH
"}
=
$emulabconfig
{
BOSS_PKG_DIR
};
mysystem
("
pkg_add -f -v
$emulabconfig
{BOSS_PKG} >/tmp/perrs 2>&1
");
if
(
$WINSUPPORT
)
{
...
...
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