Skip to content
GitLab
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
9da30e7e
Commit
9da30e7e
authored
Jul 25, 2014
by
Leigh B Stoller
Browse files
Add -F option (force no deltas) to pass through to create_image.
Useful for debugging.
parent
c4254f56
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/clone_image.in
View file @
9da30e7e
...
...
@@ -55,13 +55,14 @@ sub usage()
"
-w Wait for image to be created
\n
");
exit
(
-
1
);
}
my
$optlist
=
"
densg:w
";
my
$optlist
=
"
densg:w
F
";
my
$debug
=
0
;
my
$wholedisk
=
0
;
my
$impotent
=
0
;
my
$nosnapshot
=
0
;
my
$isvirtnode
=
0
;
my
$waitmode
=
0
;
my
$nodelta
=
0
;
# To pass to create_image.
my
$global
;
#
...
...
@@ -125,6 +126,9 @@ if (defined($options{"s"})) {
if
(
defined
(
$options
{"
w
"}))
{
$waitmode
=
1
;
}
if
(
defined
(
$options
{"
F
"}))
{
$nodelta
=
1
;
}
if
(
defined
(
$options
{"
g
"}))
{
$global
=
$options
{"
g
"};
}
...
...
@@ -309,6 +313,7 @@ if (defined($image)) {
}
my
$opts
=
"
-p
$pid
";
$opts
.=
"
-w
"
if
(
$waitmode
);
$opts
.=
"
-F
"
if
(
$nodelta
);
#
# Mike says do not pass versioned imagenames to create_image when
...
...
@@ -502,6 +507,7 @@ if ($nosnapshot) {
}
my
$opts
=
"
-p
$pid
";
$opts
.=
"
-w
"
if
(
$waitmode
);
$opts
.=
"
-F
"
if
(
$nodelta
);
$output
=
emutil::
ExecQuiet
("
$CREATEIMAGE
$opts
$imagename
$node_id
");
if
(
$?
)
{
print
STDERR
$output
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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