diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-12-28 14:55:35 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-12-28 14:55:35 +0000 |
commit | bdea09a60725398e61353a9c9adc4deb21013259 (patch) | |
tree | 0aac080f60410e830a696bbbf68a5b09fd40ef96 /tools | |
parent | 79e074214bba4ac6f256c18142e0ba77f843cfaf (diff) | |
download | drakx-bdea09a60725398e61353a9c9adc4deb21013259.tar drakx-bdea09a60725398e61353a9c9adc4deb21013259.tar.gz drakx-bdea09a60725398e61353a9c9adc4deb21013259.tar.bz2 drakx-bdea09a60725398e61353a9c9adc4deb21013259.tar.xz drakx-bdea09a60725398e61353a9c9adc4deb21013259.zip |
add some minimal help in syslinux
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/draklive | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/draklive b/tools/draklive index ed62ea586..9ff401fcb 100755 --- a/tools/draklive +++ b/tools/draklive @@ -403,12 +403,13 @@ sub build_syslinux_cfg { #- fastboot is needed to avoid fsck my $append = "fastboot splash=silent vga=$live->{system}{vga_mode}"; my $to_root = get_media_fs_module($media) eq 'vfat'; - my ($initrd, $kernel, $display) = map { $to_root ? basename($_) : $_ } - get_initrd_path($live, $media), map { $live->{prefix}{boot} . '/' . $_ } qw(vmlinuz live.msg); + my ($initrd, $kernel, $display, $help) = map { $to_root ? basename($_) : $_ } + get_initrd_path($live, $media), map { $live->{prefix}{boot} . '/' . $_ } qw(vmlinuz live.msg help.msg); qq(default live prompt 1 timeout 40 display $display +F1 $help label live kernel $kernel append initrd=$initrd $append @@ -518,6 +519,15 @@ sub prepare_bootloader { cp_f($live->{system}{root} . '/boot/vmlinuz-' . $live->{system}{kernel}, $live->{workdir} . $live->{prefix}{boot} . '/vmlinuz'); my $msg = $live->{system}{root} . '/boot/message-graphic'; cp_f($msg, $live->{workdir} . $live->{prefix}{boot} . '/live.msg') if -f $msg; + output($live->{workdir} . $live->{prefix}{boot} . '/help.msg', + pack("C*", 0x0E, 0x80, 0x03, 0x00, 0xC) . qq( +Welcome to Mandriva live! + +The command line can be used to specify kernel options. + +live <kernel options> + +)); foreach ($live->{media}, @{$live->{extra_media}}) { output($live->{workdir} . get_syslinux_path($live, $_), build_syslinux_cfg($live, $_)); } |