diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-02-10 16:48:46 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-02-10 16:48:46 +0000 |
commit | cbe3dd1a28b49f7ceff715cc813f8300c277fed5 (patch) | |
tree | 3fc7c4156f2efccdd8dbbf1004f47bae8869d37b /pxe_wizard | |
parent | 48e4515bbe2f89b312473ec7bd6a38d265bb097d (diff) | |
download | drakwizard-cbe3dd1a28b49f7ceff715cc813f8300c277fed5.tar drakwizard-cbe3dd1a28b49f7ceff715cc813f8300c277fed5.tar.gz drakwizard-cbe3dd1a28b49f7ceff715cc813f8300c277fed5.tar.bz2 drakwizard-cbe3dd1a28b49f7ceff715cc813f8300c277fed5.tar.xz drakwizard-cbe3dd1a28b49f7ceff715cc813f8300c277fed5.zip |
use 'needimg' check for remove/modify Boot PXE image
Diffstat (limited to 'pxe_wizard')
-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; |