summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-03-05 16:05:09 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-03-05 16:05:09 +0000
commitc396044083fbb70cd292ec66ea2796ae86630853 (patch)
tree554ac23d0d522c9c5308687e724f98ba7b744216 /draklive
parentc11280ae573c531f2f1cf59dec617579b2fc17e4 (diff)
downloaddrakiso-c396044083fbb70cd292ec66ea2796ae86630853.tar
drakiso-c396044083fbb70cd292ec66ea2796ae86630853.tar.gz
drakiso-c396044083fbb70cd292ec66ea2796ae86630853.tar.bz2
drakiso-c396044083fbb70cd292ec66ea2796ae86630853.tar.xz
drakiso-c396044083fbb70cd292ec66ea2796ae86630853.zip
Add support for a "harddrive" boot entry to chainload the first HD bootloader
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive11
1 files changed, 8 insertions, 3 deletions
diff --git a/draklive b/draklive
index 78d0cce..c678738 100755
--- a/draklive
+++ b/draklive
@@ -88,9 +88,14 @@ sub build_syslinux_cfg {
(map {
my ($name, $cmdline) = @$_;
$name =~ s/\s/_/g;
- "label " . ($name || $title),
- " kernel $kernel",
- " append initrd=$initrd $append $cmdline";
+ if ($name eq "harddisk") {
+ "label " . $name,
+ " localboot 0x80";
+ } else {
+ "label " . ($name || $title),
+ " kernel $kernel",
+ " append initrd=$initrd $append $cmdline";
+ }
} group_by2('' => '', @{$live->{system}{boot_entries}})),
"",
);