From ef83c3384527da74e78aa47c017c96dd34a629b9 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Tue, 20 Jun 2006 20:54:31 +0000 Subject: fix fixed_val and fixed_list --- pxe_wizard/Pxe.pm | 62 +++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'pxe_wizard') diff --git a/pxe_wizard/Pxe.pm b/pxe_wizard/Pxe.pm index 2bcfb4a7..36d1f80b 100644 --- a/pxe_wizard/Pxe.pm +++ b/pxe_wizard/Pxe.pm @@ -152,7 +152,7 @@ $o->{pages} = { removeimg => { name => N("Remove a boot image") . "\n\n" . N("Please choose the PXE boot image you want to remove from the PXE server.") . "\n\n" . N("The PXE boot image, and the related entry in PXE menu will be deleted."), data => [ - { label => N("Boot image to remove:"), val => \$o->{var}{IMGTOREMOVE}, fixed_list => \@list_menu }, + { label => N("Boot image to remove:"), val => \$o->{var}{IMGTOREMOVE}, list_ref => \@list_menu }, ], no_back => 1, next => 'summaryremove', @@ -160,7 +160,7 @@ $o->{pages} = { modifyimg => { name => N("Add options to boot image") . "\n\n" . N("In some cases, you want to add some options to the PXE boot image. This wizard provides an easy way to customize a boot image with common parameters.") . "\n\n" . N("Please choose, from the list below, the PXE boot image you want to modify"), data => [ - { label => N("Boot image to modify:"), val => \$o->{var}{IMGTOMODIFY}, fixed_list => \@list_menu }, + { label => N("Boot image to modify:"), val => \$o->{var}{IMGTOMODIFY}, list_ref => \@list_menu }, ], post => \&read_option, no_back => 1, @@ -169,21 +169,21 @@ $o->{pages} = { gomodify => { name => N("Add option to the PXE boot image") . "\n\n" . N("Server IP: IP address of the server, which contains installation directory. You can create one with Mandriva Linux install server wizard.") . "\n" . N("Install directory: the full path to Mandriva Linux install server directory") . "\n" . N("Installation method: choose NFS or HTTP."), data => [ - { label => N("Boot image to modify:"), fixed_val => \$o->{var}{i} }, + { label => N("Boot image to modify:"), val_ref => \$o->{var}{i} }, { label => N("Server IP:"), val => \$o->{var}{IP} }, { label => N("Install directory:"), val => \$o->{var}{DIR} }, - { label => N("Installation method:"), val => \$o->{var}{METHOD}, fixed_list => \@list_method }, + { label => N("Installation method:"), val => \$o->{var}{METHOD}, list_ref => \@list_method }, ], next => 'gomodify2', }, gomodify2 => { name => N("Network client interface: the network interface used for the installation process.") . "\n" . N("Ramsize: adjust the ramsize parameter on boot image.") . "\n" . N("VGA option: if you encounter any problem with VGA, please adjust. ") . "\n" . N("ACPI option: Advanced Configuration and Power Interface"), data => [ - { label => N("Network client interface:"), val => \$o->{var}{ETH}, fixed_list => \@list_eth }, - { label => N("Ramsize:"), val => \$o->{var}{RAM}, fixed_list => \@list_ram }, - { label => N("VGA option:"), val => \$o->{var}{VGA}, fixed_list => \@list_vga }, - { label => N("ACPI option:"), val => \$o->{var}{ACPI}, fixed_list => \@list_acpi }, - { label => N("APIC option:"), val => \$o->{var}{APIC}, fixed_list => \@list_apic }, + { label => N("Network client interface:"), val => \$o->{var}{ETH}, list_ref => \@list_eth }, + { label => N("Ramsize:"), val => \$o->{var}{RAM}, list_ref => \@list_ram }, + { label => N("VGA option:"), val => \$o->{var}{VGA}, list_ref => \@list_vga }, + { label => N("ACPI option:"), val => \$o->{var}{ACPI}, list_ref => \@list_acpi }, + { label => N("APIC option:"), val => \$o->{var}{APIC}, list_ref => \@list_apic }, { label => N("Custom option:"), val => \$o->{var}{OPTION} }, ], next => 'summarymodify', @@ -236,10 +236,10 @@ $o->{pages} = { summaryserver => { name => N("The wizard will now prepare all default files to set your PXE server"), data => [ - { label => N("TFTP directory:"), fixed_val => \$TFTPDIR }, - { label => N("Boot image path:"), fixed_val => \$IMGPATH }, - { label => N("PXE 'default' file:"), fixed_val => \$PXEDEFAULT }, - { label => N("PXE 'help' file:"), fixed_val => \$PXEHELP }, + { label => N("TFTP directory:"), val_ref => \$TFTPDIR }, + { label => N("Boot image path:"), val_ref => \$IMGPATH }, + { label => N("PXE 'default' file:"), val_ref => \$PXEDEFAULT }, + { label => N("PXE 'help' file:"), val_ref => \$PXEHELP }, ], post => \&do_it_pxe, next => 'endserver', @@ -247,16 +247,16 @@ $o->{pages} = { summarymodify => { name => N("The wizard will now modify boot options with those parameters:"), data => [ - { label => N("Boot image to modify:"), fixed_val => \$o->{var}{i} }, - { label => N("Server IP:"), fixed_val => \$o->{var}{IP} }, - { label => N("Install directory:"), fixed_val => \$o->{var}{DIR} }, - { label => N("Installation method:"), fixed_val => \$o->{var}{METHOD} }, - { label => N("Network client interface:"), fixed_val => \$o->{var}{ETH} }, - { label => N("Ramsize:"), fixed_val => \$o->{var}{RAM} }, - { label => N("VGA option:"), fixed_val => \$o->{var}{VGA} }, - { label => N("ACPI option:"), fixed_val => \$o->{var}{ACPI} }, - { label => N("APIC option:"), fixed_val => \$o->{var}{APIC} }, - { label => N("Custom option:"), fixed_val => \$o->{var}{OPTION} }, + { label => N("Boot image to modify:"), val_ref => \$o->{var}{i} }, + { label => N("Server IP:"), val_ref => \$o->{var}{IP} }, + { label => N("Install directory:"), val_ref => \$o->{var}{DIR} }, + { label => N("Installation method:"), val_ref => \$o->{var}{METHOD} }, + { label => N("Network client interface:"), val_ref => \$o->{var}{ETH} }, + { label => N("Ramsize:"), val_ref => \$o->{var}{RAM} }, + { label => N("VGA option:"), val_ref => \$o->{var}{VGA} }, + { label => N("ACPI option:"), val_ref => \$o->{var}{ACPI} }, + { label => N("APIC option:"), val_ref => \$o->{var}{APIC} }, + { label => N("Custom option:"), val_ref => \$o->{var}{OPTION} }, ], post => \&do_it_modify, next => 'endmodify', @@ -264,7 +264,7 @@ $o->{pages} = { summaryremove => { name => N("The wizard will now remove this PXE boot image"), data => [ - { label => N("PXE entry to remove:"), fixed_val => \$o->{var}{IMGTOREMOVE} }, + { label => N("PXE entry to remove:"), val_ref => \$o->{var}{IMGTOREMOVE} }, ], no_back => 1, post => \&do_it_remove, @@ -273,9 +273,9 @@ $o->{pages} = { summaryadd => { name => N("The wizard will now add this PXE boot image"), data => [ - { label => "PXE name:", fixed_val => \$o->{var}{PXENAME} }, - { label => "PXE description:", fixed_val => \$o->{var}{DESCR} }, - { label => "Path to boot image:", fixed_val => \$o->{var}{IMG} }, + { label => "PXE name:", val_ref => \$o->{var}{PXENAME} }, + { label => "PXE description:", val_ref => \$o->{var}{DESCR} }, + { label => "Path to boot image:", val_ref => \$o->{var}{IMG} }, ], post => \&do_it_add, next => 'endadd', @@ -283,10 +283,10 @@ $o->{pages} = { summaryaddrdz => { name => N("The wizard will now add this PXE boot image"), data => [ - { label => "PXE name:", fixed_val => \$o->{var}{PXENAME} }, - { label => "PXE description:", fixed_val => \$o->{var}{DESCR} }, - { label => "Full path to all.rdz image:", fixed_val => \$o->{var}{ALLRDZ} }, - { label => "Full path to vmlinuz:", fixed_val => \$o->{var}{VMLINUZ} }, + { label => "PXE name:", val_ref => \$o->{var}{PXENAME} }, + { label => "PXE description:", val_ref => \$o->{var}{DESCR} }, + { label => "Full path to all.rdz image:", val_ref => \$o->{var}{ALLRDZ} }, + { label => "Full path to vmlinuz:", val_ref => \$o->{var}{VMLINUZ} }, ], post => \&do_it_addrdz, next => 'endadd', -- cgit v1.2.1