summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-20 02:19:16 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-20 02:19:16 +0000
commit97f5cb2a1ea85a995fae241e9f01aac98dc464ab (patch)
tree913146661a8b418b24bb24ff2760a27f43cf5889
parentdb05e139aee319b0c596f9bb14177a607b088e16 (diff)
downloaddraklive-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-xdraklive5
1 files changed, 5 insertions, 0 deletions
diff --git a/draklive b/draklive
index 327b890..9615b04 100755
--- a/draklive
+++ b/draklive
@@ -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 {