diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-08-20 02:19:16 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-08-20 02:19:16 +0000 |
commit | 97f5cb2a1ea85a995fae241e9f01aac98dc464ab (patch) | |
tree | 913146661a8b418b24bb24ff2760a27f43cf5889 | |
parent | db05e139aee319b0c596f9bb14177a607b088e16 (diff) | |
download | draklive-97f5cb2a1ea85a995fae241e9f01aac98dc464ab.tar draklive-97f5cb2a1ea85a995fae241e9f01aac98dc464ab.tar.gz draklive-97f5cb2a1ea85a995fae241e9f01aac98dc464ab.tar.bz2 draklive-97f5cb2a1ea85a995fae241e9f01aac98dc464ab.tar.xz draklive-97f5cb2a1ea85a995fae241e9f01aac98dc464ab.zip |
die in bootloader step if selected kernel does not exist
-rwxr-xr-x | draklive | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -477,6 +477,11 @@ sub create_initrd { sub create_bootloader { my ($live) = @_; + + my $kernel = $live->find_kernel; + my $vmlinuz_long = '/boot/vmlinuz-' . $kernel; + -e $live->get_system_root . $vmlinuz_long or die "can not find kernel $kernel\n"; + if (need_media_specific_boot($live)) { create_media_bootloader($live); } else { |