diff options
Diffstat (limited to 'pxe_wizard/Pxe.pm')
-rw-r--r-- | pxe_wizard/Pxe.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pxe_wizard/Pxe.pm b/pxe_wizard/Pxe.pm index 3316be0e..a959c908 100644 --- a/pxe_wizard/Pxe.pm +++ b/pxe_wizard/Pxe.pm @@ -114,7 +114,6 @@ $o->{pages} = { }, post => sub { -f "$X86/drakwizard_pxe" or return 'error_needpxe'; - @list_menu or return 'needimg' ; if ($o->{var}{wiz_level} == 2) { return 'addimg' } elsif ($o->{var}{wiz_level} == 3) { @@ -160,7 +159,6 @@ $o->{pages} = { }, modifyimg => { name => N("Add option to boot image:") . "\n\n" . N("Please choose PXE boot image to modify"), - data => [ { label => N("Boot image to configure:"), val => \$o->{var}{IMGTOMODIFY}, fixed_list => \@list_menu }, ], @@ -538,6 +536,7 @@ sub do_it_addrdz { # main remove image sub do_it_remove { return if $::testing; + @list_menu or return 'needimg'; remove_in_menu($o->{var}{IMGTOREMOVE}); remove_in_help($o->{var}{IMGTOREMOVE}); remove_img($o->{var}{IMGTOREMOVE}); @@ -568,6 +567,7 @@ sub read_option { # modify default boot option of an image sub do_it_modify { + @list_menu or return 'needimg'; my $IMG = $o->{var}{IMGTOMODIFY}; my ($METHOD, $ETH, $IP, $DIR, $RAM, $VGA, $ACPI, $APIC) = ($o->{var}{METHOD}, $o->{var}{ETH}, $o->{var}{IP}, $o->{var}{DIR}, $o->{var}{RAM}, $o->{var}{VGA}, $o->{var}{ACPI}, $o->{var}{APIC}); return if $::testing; |