Browse Source

If the ARS is never opened, $entry_advanced[3] eq "", so now when $um == 0

it defaults to the value for BOOT_DEVICE.
master
freesource 23 years ago
parent
commit
12807a509e
  1. 9
      gbootroot

9
gbootroot

@ -2730,7 +2730,6 @@ sub lilo_put_it_together {
# DEVICES SECTION # DEVICES SECTION
my @devices; my @devices;
my $device_table = "$tmp/boot_device_table.txt"; my $device_table = "$tmp/boot_device_table.txt";
my $norm_root_dev;
if ( $fs_type eq "genext2fs" ) { if ( $fs_type eq "genext2fs" ) {
info(0, "Making $device_table for genext2fs\n"); info(0, "Making $device_table for genext2fs\n");
@ -2758,16 +2757,18 @@ sub lilo_put_it_together {
($norm_root_device) = gdkbirdaao(); ($norm_root_device) = gdkbirdaao();
if ( $norm_root_device ) { if ( $norm_root_device ) {
my @existing_device_test = my @existing_device_test =
grep ( /\/dev\/$norm_root_dev/, @devices ); grep ( /\/dev\/$norm_root_device/, @devices );
if ( !@existing_device_test ) { if ( @existing_device_test ) {
push( @devices, "/dev/$norm_root_device" ); push( @devices, "/dev/$norm_root_device" );
} }
} }
# For frame buffer devices and the like. # For frame buffer devices and the like.
if ( $entry_advanced[1] ) {
for ( split(" ", $entry_advanced[1] ) ) { for ( split(" ", $entry_advanced[1] ) ) {
push(@devices, $_ ) if $_; push(@devices, $_ ) if $_;
} }
}
device_table( @devices ); device_table( @devices );
close(BootRoot::Yard::DEVICE_TABLE); close(BootRoot::Yard::DEVICE_TABLE);
@ -2902,6 +2903,8 @@ sub lilo_put_it_together {
# different devices to be used. -- now there is $entry_advanced[3] which # different devices to be used. -- now there is $entry_advanced[3] which
# is the ROOT_DEVICE # is the ROOT_DEVICE
if ($um == 0 ) { if ($um == 0 ) {
# ARS was never opened, so root device defaults to boot device.
$entry_advanced[3] = $container[BOOT_DEVICE] if !$entry_advanced[3];
mtab(1); mtab(1);
} }
else { else {

Loading…
Cancel
Save