Commit 67fbb4fb authored by Mike Hibler's avatar Mike Hibler

Remove odd restriction that a whole disk image must boot from partition 1.

I'm sure there was a reason for this at one time, but I don't recall it...
parent cf1872fb
......@@ -417,11 +417,6 @@ if ($loadpart < 1 || $loadpart > 4) {
UserError("DOS Partion: Out of range.");
}
# When wholedisk is checked, can't specify a load partition other than 1.
if ($loadpart != 1 && $newimageid_args{"wholedisk"}) {
UserError("Whole disk: Only allowed with a DOS starting partition of 1.");
}
#
# Check sanity of node name and that user can create an image from it.
#
......@@ -559,12 +554,10 @@ my $osid = $new_osinfo->osid();
# matters.
#
my $loadlen = 1;
$newimageid_args{"part${loadpart}_osid"} = $osid;
if ($newimageid_args{"wholedisk"}) {
$loadlen = 4;
$loadpart = 0;
$newimageid_args{"part1_osid"} = $osid;
} else {
$newimageid_args{"part${loadpart}_osid"} = $osid;
}
$newimageid_args{"loadpart"} = $loadpart;
$newimageid_args{"loadlength"} = $loadlen;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment