diff options
Diffstat (limited to 'debian/linux-base.postinst')
-rw-r--r-- | debian/linux-base.postinst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/debian/linux-base.postinst b/debian/linux-base.postinst index 95ff2855d69d..fc1d33965051 100644 --- a/debian/linux-base.postinst +++ b/debian/linux-base.postinst @@ -533,6 +533,12 @@ sub silo_post { system('silo'); } +### Yaboot + +sub yaboot_post { + system('ybin'); +} + ### ELILO sub elilo_update { @@ -954,6 +960,7 @@ my @config_files = ({packages => 'mount', path => '/etc/yaboot.conf', list => \&lilo_list, update => \&lilo_update, + post_update => \&yaboot_post, is_boot_loader => 1}, {packages => 'elilo', path => '/etc/elilo.conf', @@ -1620,8 +1627,8 @@ sub check { my $do_bootloader; if (my $conf = new FileHandle('/etc/kernel-img.conf', 'r')) { while (<$conf>) { - $do_bootloader = 0 if /do_bootloader\s*=\s*(no|false|0)\s*$/i; - $do_bootloader = 1 if /do_bootloader\s*=\s*(yes|true|1)\s*$/i; + $do_bootloader = 0 if /^\s*do_bootloader\s*=\s*(no|false|0)\s*$/i; + $do_bootloader = 1 if /^\s*do_bootloader\s*=\s*(yes|true|1)\s*$/i; } $conf->close(); } |