diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-06-25 05:31:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-06-25 05:31:05 +0000 |
commit | 103ec880cbbcbc2d36131319fa22edbfe6d54069 (patch) | |
tree | 598e7cd831f7c153383bf13fd9ba39185b660964 /perl-install | |
parent | 98d01b972f27a4a45d78922ee44022142c08cf38 (diff) | |
download | drakx-103ec880cbbcbc2d36131319fa22edbfe6d54069.tar drakx-103ec880cbbcbc2d36131319fa22edbfe6d54069.tar.gz drakx-103ec880cbbcbc2d36131319fa22edbfe6d54069.tar.bz2 drakx-103ec880cbbcbc2d36131319fa22edbfe6d54069.tar.xz drakx-103ec880cbbcbc2d36131319fa22edbfe6d54069.zip |
- adapt to new bootloader.pm
- simplify
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_any.pm | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index a6fb37839..8ce4ce1a3 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -627,13 +627,10 @@ sub setupFB { $vga ||= 785; #- assume at least 640x480x16. require bootloader; - #- update bootloader entries with vga, all kernel are now framebuffer. - foreach (qw(vmlinuz vmlinuz-secure vmlinuz-smp vmlinuz-hack)) { - if (my $e = bootloader::get("/boot/$_", $o->{bootloader})) { - $e->{vga} = $vga; - } + foreach (@{$o->{bootloader}{entries}}) { + $_->{vga} = $vga if $_->{vga}; #- replace existing vga= with } - bootloader::install($o->{bootloader}, $o->{fstab}, $o->{all_hds}{hds}); + bootloader::install($o->{bootloader}, $o->{all_hds}{hds}); 1; } |