From 3ab5c649a2ee409b0726ddd3e3761c5ba5ae2af3 Mon Sep 17 00:00:00 2001 From: freesource Date: Fri, 5 Oct 2001 18:09:26 +0000 Subject: [PATCH] This addes System.map_selector button. --- gbootroot | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/gbootroot b/gbootroot index 6a345f0..e13cb21 100755 --- a/gbootroot +++ b/gbootroot @@ -57,6 +57,9 @@ # GNU/Linux # Linus Torvalds # +# E2fsprogs +# Theodore Ts'o +# # lsMode # M-J. Dominus # @@ -109,8 +112,9 @@ $main::makefs = "mke2fs -F -m0 -i8192"; # # 1.2.13 - 09/28/2001 # * Renamed "lilo" Boot method to "2 disk compression." -# * Add three new entry fields to manage kernel modules, and -# made important changes to the 2 disk compression code. +# * Added three new entry fields and one radio button to manage +# kernel modules, and made important changes to the 2 disk +# compression code. # * Advanced Section is now Advanced Boot Section (ABS). # * Advanced Root Section (ARS) added. Includes root device and # size, root filesystem name with Save or Save As, filesystem @@ -231,7 +235,7 @@ my $text_window; my $verbosity_window; my @container; -# Make container verbose +# Make @container verbose use constant METHOD => 0 ; use constant KERNEL => 1 ; use constant ROOT_DEVICE => 2 ; @@ -244,7 +248,17 @@ use constant OBJCOPY_BOOL => 8 ; use constant ABS_DEVICE => 9 ; use constant ABS_OPT_DEVICE => 10 ; use constant ABS_APPEND => 11 ; -use constant MOD_STRIP => 12 ; +# +# The Selection values are used for button_fileselect_advanced +# since it shares fileselect and file_ok_sel with button. +# +# ABS: 12=Root_Device_Selection 13=UML_Kernel_Selection +# UML BOX: 14=Root_Fs_Selection +# +use constant MOD_STRIP => 15 ; +# +# ABS: 16=System.map_Selection + my @original_container; my $file_dialog; my ($kernel,$root_image,$device,$size,$kernel_version); @@ -941,6 +955,8 @@ sub advanced_boot_section { " kernel's source code after compilation.", ""); $ea6->set_text($entry_advanced[13]) if defined $entry_advanced[13]; + button_fileselect_advanced(2,3,6,7,"Selection",$ea6,"Selection",16, + $table_advanced,"/lib/modules/"); $button_count++; } @@ -1686,10 +1702,14 @@ sub Generate { # 11 = Kernel Modules .. from the Boot Method # 12 = Kernel Version .. from the Boot Method + # 13 = System.map .. from the Boot Method # $root_device_size; # $filesystem_size; + # File select: function order: non-table = button->fileselect->file_ok_sel + # table = button_fileselect_advanced->fileselect->file_ok_sel + $ars->{device} = $entry_advanced[3]; $ars->{device_size} = $root_device_size; $ars->{tmp} = $tmp; @@ -1773,6 +1793,9 @@ sub button_fileselect_advanced { elsif ($order == 14) { $tooltips->set_tip( $button, "Select the Root Filesystem.", "" ); } + elsif ($order == 16) { + $tooltips->set_tip( $button, "Select the System.map.", "" ); + } $button->signal_connect( "clicked",\&fileselect,$ent,$name,$order,$device); @@ -3372,9 +3395,12 @@ email contact -> Jonathan Rosenbaum Homepage -> http://gbootroot.sourceforge.net Submit a Bug -> http://sourceforge.net/bugs/?group_id=9513 Development site -> http://sourceforge.net/projects/gbootroot + + Places to talk - email lists are more popular. + +gbootroot--{devel,user} mailing lists -> http://sourceforge.net/mail/?group_id=9513 Help forum -> http://sourceforge.net/forum/forum.php?forum_id=29639 Open forum -> http://sourceforge.net/forum/forum.php?forum_id=29638 -gbootroot-devel mailing list -> http://sourceforge.net/mail/?group_id=9513 How to Use gBootRoot: