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
f849ce0a
Commit
f849ce0a
authored
Jul 28, 2014
by
Leigh B Stoller
Browse files
Bug Fix: Set the loadpart properly when cloning a whole disk image, so
that the backend script can performs its checks properly.
parent
11afc3fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/newimageid_ez.php3
View file @
f849ce0a
<?php
#
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -932,7 +932,8 @@ if (!isset($submit)) {
}
$defaults
[
"loadpart"
]
=
$baseimage
->
loadpart
();
if
(
$baseimage
->
loadpart
()
==
0
&&
$baseimage
->
loadlength
()
==
4
)
{
$defaults
[
"loadpart"
]
=
"1"
;
$loadpart
=
(
$baseimage
->
part1_osid
()
?
1
:
2
);
$defaults
[
"loadpart"
]
=
$loadpart
;
$defaults
[
"wholedisk"
]
=
"Yep"
;
}
$defaults
[
"mbr_version"
]
=
$baseimage
->
mbr_version
();
...
...
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