Commit e06b7895 authored by Russ Fish's avatar Russ Fish

When wholedisk is checked, can't specify a load partition other than 1.

parent f8dce20c
......@@ -416,6 +416,11 @@ if ($loadpart < 1 || $loadpart > 4) {
UserError("DOS Partion: Out of range.");
}
# Can't have both a load partition other than 1 specified, and wholedisk checked.
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.
#
......
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