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
e753a138
Commit
e753a138
authored
Jul 25, 2014
by
Leigh B Stoller
Browse files
Frisbee now lives in /usr/local/bin.
parent
46a1bf2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/libvnode.pm
View file @
e753a138
...
@@ -467,8 +467,8 @@ sub findBridgeIfaces($) {
...
@@ -467,8 +467,8 @@ sub findBridgeIfaces($) {
#
#
# Since (some) vnodes are imageable now, we provide an image fetch
# Since (some) vnodes are imageable now, we provide an image fetch
# mechanism. Caller provides an imagepath for frisbee, and a hash of
args that
# mechanism. Caller provides an imagepath for frisbee, and a hash of
# comes directly from loadinfo.
#
args that
comes directly from loadinfo.
#
#
sub
downloadImage
($$$$)
{
sub
downloadImage
($$$$)
{
my
(
$imagepath
,
$todisk
,
$nodeid
,
$reload_args_ref
)
=
@_
;
my
(
$imagepath
,
$todisk
,
$nodeid
,
$reload_args_ref
)
=
@_
;
...
@@ -477,9 +477,13 @@ sub downloadImage($$$$) {
...
@@ -477,9 +477,13 @@ sub downloadImage($$$$) {
if
(
!
defined
(
$imagepath
)
||
!
defined
(
$reload_args_ref
));
if
(
!
defined
(
$imagepath
)
||
!
defined
(
$reload_args_ref
));
my
$addr
=
$reload_args_ref
->
{"
ADDR
"};
my
$addr
=
$reload_args_ref
->
{"
ADDR
"};
my
$FRISBEE
=
"
/usr/local/
etc/emulab
/frisbee
";
my
$FRISBEE
=
"
/usr/local/
bin
/frisbee
";
my
$IMAGEUNZIP
=
"
/usr/local/bin/imageunzip
";
my
$IMAGEUNZIP
=
"
/usr/local/bin/imageunzip
";
my
$command
=
"";
my
$command
=
"";
# Backwards compat.
if
(
!
-
e
$FRISBEE
)
{
$FRISBEE
=
"
/usr/local/etc/emulab/frisbee
";
}
if
(
!
defined
(
$addr
)
||
$addr
eq
"")
{
if
(
!
defined
(
$addr
)
||
$addr
eq
"")
{
# frisbee master server world
# frisbee master server world
...
@@ -491,7 +495,7 @@ sub downloadImage($$$$) {
...
@@ -491,7 +495,7 @@ sub downloadImage($$$$) {
$server
=
$
1
;
$server
=
$
1
;
}
}
if
(
$reload_args_ref
->
{"
IMAGEID
"}
=~
if
(
$reload_args_ref
->
{"
IMAGEID
"}
=~
/^([-\d\w]+),([-\d\w]+),([-\d\w\.]+)$/
)
{
/^([-\d\w]+),([-\d\w]+),([-\d\w\.
:
]+)$/
)
{
$imageid
=
"
$1/$3
";
$imageid
=
"
$1/$3
";
}
}
if
(
SHAREDHOST
())
{
if
(
SHAREDHOST
())
{
...
...
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