diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-03-05 16:05:09 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-03-05 16:05:09 +0000 |
commit | c396044083fbb70cd292ec66ea2796ae86630853 (patch) | |
tree | 554ac23d0d522c9c5308687e724f98ba7b744216 | |
parent | c11280ae573c531f2f1cf59dec617579b2fc17e4 (diff) | |
download | draklive-c396044083fbb70cd292ec66ea2796ae86630853.tar draklive-c396044083fbb70cd292ec66ea2796ae86630853.tar.gz draklive-c396044083fbb70cd292ec66ea2796ae86630853.tar.bz2 draklive-c396044083fbb70cd292ec66ea2796ae86630853.tar.xz draklive-c396044083fbb70cd292ec66ea2796ae86630853.zip |
Add support for a "harddrive" boot entry to chainload the first HD bootloader
-rwxr-xr-x | draklive | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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}})), "", ); |