From b14a4697860c6ca55800acf8e4c9332839c322d7 Mon Sep 17 00:00:00 2001 From: freesource Date: Tue, 15 Jan 2002 06:39:58 +0000 Subject: [PATCH] Had some testing code which was providing the wrong value for $compress, this made non-root booting fail for bzip2 because bunzip2 didn't exist in the initrd. --- BootRoot/BootRoot.pm | 8 +++++--- Changes | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/BootRoot/BootRoot.pm b/BootRoot/BootRoot.pm index b2a67b8..3a2efe1 100644 --- a/BootRoot/BootRoot.pm +++ b/BootRoot/BootRoot.pm @@ -2160,6 +2160,7 @@ sub entry_advanced { $entry_advanced->signal_connect( "changed", sub { $entry_advanced[$numa] = $entry_advanced->get_text(); + print $entry_advanced[$numa], " $numa\n"; if ($numa == 4) { $ars->{filename} = $entry_advanced[$numa]; ars($ars); @@ -3058,6 +3059,7 @@ sub lilo_put_it_together { # root lilo power, before going on. else { + # Ask the user if they have su lilo priviliges. # Hopefully, password free, but that can be incorporated. mtab(3); @@ -3614,9 +3616,9 @@ sub initrd { if ( $fs_type eq "genext2fs" ) { # Assuming busybox is being used, so bzip2 should still be standard # just another link .. just for testing. - if ( $compress eq "bzip2" ) { - $compress = "bunzip2"; - } + ##if ( $compress eq "bzip2" ) { + ## $compress = "bunzip2"; + ##} } my $broot_image = basename($root_image); diff --git a/Changes b/Changes index 20965da..e903a52 100644 --- a/Changes +++ b/Changes @@ -1,12 +1,15 @@ +Had some testing code which was providing the wrong value for $compress, this +made non-root booting fail for bzip2 because bunzip2 didn't exist in the +initrd. Added another technique in the FAQ to show how space can be saved on the root_fs by using the libraries from the initrd. Liav instigated this by -asking a question related to FAQ question 16, "So if I understand correctly, +asking a question related to FAQ question 14, "So if I understand correctly, it is not possible to copy libc from /dev/ram0 to /dev/ram1 before mounting /dev/ram1 as / ? Liav pointed out how Yard can make boot/root floppies with a compressed root -filesystem. Edited FAQ question 16 to correctly reflect how gz compressed +filesystem. Edited FAQ question 13 to correctly reflect how gz compressed root filesystems may be booted without an initrd. State is saved for the Compression off check box and the Root Filename save