From c6f3c5e2231430e3359f31050643b903262e0ca9 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 3 May 2004 13:00:07 +0000 Subject: - move boot help messages out of make_boot_img and the various msgboot*.img.bz2 - move them in help.msg.xml and advanced.msg.xml - talk about noapic in help.msg (thanks to switzerland, esp. to gc) --- advanced.msg.xml | 17 ++++++++++ help.msg.xml | 22 +++++++++++++ make_boot_img | 94 +++++++++++++++++++++++++++----------------------------- 3 files changed, 85 insertions(+), 48 deletions(-) create mode 100644 advanced.msg.xml create mode 100644 help.msg.xml diff --git a/advanced.msg.xml b/advanced.msg.xml new file mode 100644 index 000000000..f49bb7fe8 --- /dev/null +++ b/advanced.msg.xml @@ -0,0 +1,17 @@ + +The following install types may be used instead of previously notified : + o vgahi for high resolution graphical installation. + o vga16 for 640x480 in 16 colors graphical installation. + +The following options may be added on the command line : + o readonly=1 to disable editing disk partitions. + o display=ackbar:0 to export display to ackbar machine screen 0 during + installation. + o noauto to disable automatic detection (generally used with expert). + o security=n to set security level to value n. + o updatemodules to use the special update floppy containing modules updates. + o patch to use a patch from the floppy (file named patch.pl). + o auto_install=floppy to enable auto_install using auto_inst.cfg file on the + floppy. + o memtest to test your computer RAM for faulty memory modules. + diff --git a/help.msg.xml b/help.msg.xml new file mode 100644 index 000000000..c20ea01c8 --- /dev/null +++ b/help.msg.xml @@ -0,0 +1,22 @@ + + Welcome to Mandrake Linux install help + +In most cases, the best way to get started is to simply press the <Enter> key. +If you experience problems with standard install, try one of the following +install types (type the highlighted text and press <Enter>): + + o vgalo for low resolution graphical installation. + o text for text installation instead of the graphical one. + o linux for standard graphical installation at normal resolution. + o expert for expert graphical installation at normal resolution. + + +To repair an already installed system type rescue followed +by <Enter>. + +You can also pass some <specific kernel options> to the Linux kernel. +For example, try linux noapic if your system has trouble operating +your network adapter correctly. +NOTE: You cannot pass options to modules (SCSI, ethernet card) or devices +such as CD-ROM drives in this way. If you need to do so, use expert mode. + diff --git a/make_boot_img b/make_boot_img index 0e0aa51c8..4b18ad11f 100755 --- a/make_boot_img +++ b/make_boot_img @@ -83,6 +83,45 @@ foreach my $img (@images) { } } +sub syslinux_color { + "0" . { + default => '7', + blue => '9', + green => 'a', + red => 'c', + yellow => 'e', + white => 'f', + }->{$_[0]} || die "unknown color $_[0]\n"; +} + +sub syslinux_msg { + my ($msg_xml_file, @more_text) = @_; + + require XML::Parser; + + sub xml_tree2syslinux { + my ($current_color, $tree) = @_; + my (undef, @l) = @$tree; + join('', map { + my ($type, $val) = @$_; + if ($type eq '0') { + $val; + } else { + syslinux_color($type) . xml_tree2syslinux($type, $val) . syslinux_color($current_color); + } + } group_by2(@l)); + }; + + print "parsing $msg_xml_file\n"; + my $tree = XML::Parser->new(Style => 'Tree')->parsefile($msg_xml_file); + $tree->[0] eq 'document' or die "bad file $msg_xml_file\n"; + my $text = xml_tree2syslinux('default', $tree->[1]); + + pack("C*", 0x0E, 0x80, 0x03, 0x00) . " " + . $text . join('', @more_text) + . "\n" . syslinux_color('red') . "[F1-Help] [F2-Advanced Help] [F3-Main]" . syslinux_color('default') . "\n"; +} + sub install_stripped { _ "strip $_[0]"; _ "$sudo install $_[0] $_[1]" } sub initrd { @@ -174,6 +213,9 @@ sub boot_img_i386 { _ "cat $kernel > $mnt/vmlinuz"; bmp_to_msg('isolinux-graphic-simple.bmp', "$mnt/boot.msg", '397,190,14,6', 27, 27); + output("$mnt/help.msg", syslinux_msg('help.msg.xml')); + output("$mnt/advanced.msg", syslinux_msg('advanced.msg.xml')); + (my $rdz = $img) =~ s/\.img/.rdz/; (my $initrd_type = $type) =~ s/-changedisk//; initrd($tmp_mnt_initrd, $initrd_type, $I, $rdz); @@ -661,54 +703,10 @@ F3 boot.msg kernel test/memtest.bin "; - output "isolinux/help.msg", pack("C*", 0x0E, 0x80, 0x03, 0x00) . -" - 0aWelcome to 09Mandrake Linux0a install help07 - -In most cases, the best way to get started is to simply press the 0e07 key. -If you experience problems with standard install, try one of the following -install types (type the highlighted text and press 0e07): - - o 0fvgalo07 for low resolution graphical installation. - o 0ftext07 for text installation instead of the graphical one. - o 0flinux07 for standard graphical installation at normal resolution. - o 0fexpert07 for expert graphical installation at normal resolution. - - -To use this CD to repair an already installed system type 0frescue07 -followed by 0e07. - -You can also pass some 0f07 to the Linux kernel. -For example, try 0flinux mem=128M07 if your system has 128Mb of RAM but the default -kernel ($main) does not detect it correctly. -0cNOTE07: You cannot pass options to modules (SCSI, ethernet card) or devices -such as CD-ROM drives in this way. If you need to do so, use expert mode. - -0c[F1-Help] [F2-Advanced Help] [F3-Main]07 -"; - - output "isolinux/advanced.msg", pack("C*", 0x0E, 0x80, 0x03, 0x00) . -" -The following install types may be used instead of previously notified : - o 0fvgahi07 for high resolution graphical installation. - o 0fvga1607 for 640x480 in 16 colors graphical installation. - -The following options may be added on the command line : - o 0freadonly=107 to disable editing disk partitions. - o 0fdisplay=ackbar:007 to export display to 09ackbar07 machine screen 0 during - installation. - o 0fnoauto07 to disable automatic detection (generally used with 0fexpert07). - o 0fsecurity=n07 to set security level to value 09n07. - o 0fupdatemodules07 to use the special update floppy containing modules updates. - o 0fpatch07 to use a patch from the floppy (file named 09patch.pl07). - o 0fauto_install=floppy07 to enable auto_install using 09auto_inst.cfg07 file on the - floppy. - o 0fmemtest07 to test your computer RAM for faulty memory modules. - -You can choose the following kernels : -" . join('', map_index { " o 0falt$::i07 is kernel $_\n" } @kernels) . " -0c[F1-Help] [F2-Advanced Help] [F3-Main]07 -"; + output("isolinux/help.msg", syslinux_msg('help.msg.xml')); + output("isolinux/advanced.msg", syslinux_msg('advanced.msg.xml', + "\nYou can choose the following kernels :\n", + map_index { " o " . syslinux_color('white') . "alt$::i" . syslinux_color('default') . " is kernel $_\n" } @kernels)); } sub isolinux_move { -- cgit v1.2.1