summaryrefslogtreecommitdiffstats
path: root/make_boot_img
blob: ff2b7ebf869f83d0152ac8f3b9d663ff9b7157cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113<
-rw-r--r--perl-install/install/help/po/hr.po86
1 files changed, 54 insertions, 32 deletions
diff --git a/perl-install/install/help/po/hr.po b/perl-install/install/help/po/hr.po
index be4e4b7b9..aacd0c630 100644
--- a/perl-install/install/help/po/hr.po
+++ b/perl-install/install/help/po/hr.po
@@ -9,11 +9,12 @@ msgstr ""
"PO-Revision-Date: 2005-01-04 21:25+CET\n"
"Last-Translator: auto\n"
"Language-Team: Croatian <lokalizacija@linux.hr>\n"
+"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%"
-"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;;\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;;\n"
"X-Generator: TransDict server\n"
#: ../help.pm:14
@@ -123,7 +124,8 @@ msgstr "Da li želite koristiti aboot?"
#: ../help.pm:57
#, fuzzy, c-format
msgid ""
-"Listed here are the existing Linux partitions detected on your hard disk drive.\n"
+"Listed here are the existing Linux partitions detected on your hard disk "
+"drive.\n"
"You can keep the choices made by the wizard, since they are good for most\n"
"common installations. If you make any changes, you must at least define a\n"
"root partition (\"/\"). Do not choose too small a partition or you will not\n"
@@ -133,13 +135,16 @@ msgid ""
"\n"
"Each partition is listed as follows: \"Name\", \"Capacity\".\n"
"\n"
-"\"Name\" is structured: \"hard disk drive type\", \"hard disk drive number\",\n"
+"\"Name\" is structured: \"hard disk drive type\", \"hard disk drive number"
+"\",\n"
"\"partition number\" (for example, \"hda1\").\n"
"\n"
-"\"Hard disk drive type\" is \"hd\" if your hard disk drive is an IDE hard disk drive and\n"
+"\"Hard disk drive type\" is \"hd\" if your hard disk drive is an IDE hard "
+"disk drive and\n"
"\"sd\" if it is a SCSI hard disk drive.\n"
"\n"
-"\"Hard disk drive number\" is always a letter after \"hd\" or \"sd\". For IDE\n"
+"\"Hard disk drive number\" is always a letter after \"hd\" or \"sd\". For "
+"IDE\n"
"hard disk drives:\n"
"\n"
" * \"a\" means \"master hard disk drive on the primary IDE controller\";\n"
@@ -150,7 +155,8 @@ msgid ""
"\n"
" * \"d\" means \"slave hard disk drive on the secondary IDE controller\".\n"
"\n"
-"With SCSI hard disk drives, an \"a\" means \"lowest SCSI ID\", a \"b\" means\n"
+"With SCSI hard disk drives, an \"a\" means \"lowest SCSI ID\", a \"b\" "
+"means\n"
"\"second lowest SCSI ID\", etc."
msgstr ""
"Gore su popisane postojeće Linux particije pronađene na\n"
@@ -397,14 +403,12 @@ msgstr ""
"grupi,\n"
"bit ćete upitani da potvrdite da li želite stvarno instalirati te "
"poslužitelje.\n"
-"Kod Mageiaa, svi instalirani poslužitelji se pokreću prilikom "
-"podizanja\n"
+"Kod Mageiaa, svi instalirani poslužitelji se pokreću prilikom podizanja\n"
"sustava. Čak iako su sigurni, bez poznatih problema u vrijeme izlaska "
"distribucije,\n"
"može se dogoditi da se otkriju sigurnosne rupe nakon zgotovljenja ove "
"inačice\n"
-"Mageiaa. Ako ne znate što bi pojedini servis trebao raditi ili "
-"zašto \n"
+"Mageiaa. Ako ne znate što bi pojedini servis trebao raditi ili zašto \n"
"se instalira, pritisnite \"Ne\". Pritiskanjem na \"Da\"instalirat će se "
"navedeni\n"
"servisi i pokretat će se automatski. !!\n"
@@ -645,13 +649,15 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"You now need to decide where you want to install the Mageia\n"
-"operating system on your hard disk drive. If your hard disk drive is empty or if an\n"
+"operating system on your hard disk drive. If your hard disk drive is empty "
+"or if an\n"
"existing operating system is using all the available space you will have to\n"
"partition the drive. Basically, partitioning a hard disk drive means to\n"
"logically divide it to create the space needed to install your new\n"
"Mageia system.\n"
"\n"
-"Because the process of partitioning a hard disk drive is usually irreversible\n"
+"Because the process of partitioning a hard disk drive is usually "
+"irreversible\n"
"and can lead to data losses, partitioning can be intimidating and stressful\n"
"for the inexperienced user. Fortunately, DrakX includes a wizard which\n"
"simplifies this process. Before continuing with this step, read through the\n"
@@ -664,12 +670,14 @@ msgid ""
"drive(s). If you use this option there will be no further prompts.\n"
"\n"
" * \"%s\". The wizard has detected one or more existing Linux partitions on\n"
-"your hard disk drive. If you want to use them, choose this option. You will then\n"
+"your hard disk drive. If you want to use them, choose this option. You will "
+"then\n"
"be asked to choose the mount points associated with each of the partitions.\n"
"The legacy mount points are selected by default, and for the most part it's\n"
"a good idea to keep them.\n"
"\n"
-" * \"%s\". If Microsoft Windows is installed on your hard disk drive and takes\n"
+" * \"%s\". If Microsoft Windows is installed on your hard disk drive and "
+"takes\n"
"all the space available on it, you will have to create free space for\n"
"GNU/Linux. To do so, you can delete your Microsoft Windows partition and\n"
"data (see ``Erase entire disk'' solution) or resize your Microsoft Windows\n"
@@ -692,7 +700,8 @@ msgid ""
"\n"
" !! If you choose this option, all data on your disk will be deleted. !!\n"
"\n"
-" * \"%s\". This option appears when the hard disk drive is entirely taken by\n"
+" * \"%s\". This option appears when the hard disk drive is entirely taken "
+"by\n"
"Microsoft Windows. Choosing this option will simply erase everything on the\n"
"drive and begin fresh, partitioning everything from scratch.\n"
"\n"
@@ -706,8 +715,7 @@ msgid ""
"refer to the ``Managing Your Partitions'' section in the ``Starter Guide''."
msgstr ""
"U ovom trenutku, trebate izabrati gdje ćete instalirati vaš\n"
-"Mageia operativni sustav na vašem tvrdom disku. Ukoliko je prazan "
-"ili \n"
+"Mageia operativni sustav na vašem tvrdom disku. Ukoliko je prazan ili \n"
"ako postojeći operativni sustav koristi čitav prostor na disku, trebate ga\n"
"particionirati. Jednostavno, particioniranje hard diska sastoji se od\n"
"logičkog dijeljenja kako bi napravili prostor za instalaciju vašeg novog\n"
@@ -1005,16 +1013,19 @@ msgid ""
"At this point, you need to choose which partition(s) will be used for the\n"
"installation of your Mageia system. If partitions have already been\n"
"defined, either from a previous installation of GNU/Linux or by another\n"
-"partitioning tool, you can use existing partitions. Otherwise, hard disk drive\n"
+"partitioning tool, you can use existing partitions. Otherwise, hard disk "
+"drive\n"
"partitions must be defined.\n"
"\n"
-"To create partitions, you must first select a hard disk drive. You can select\n"
+"To create partitions, you must first select a hard disk drive. You can "
+"select\n"
"the disk for partitioning by clicking on ``hda'' for the first IDE drive,\n"
"``hdb'' for the second, ``sda'' for the first SCSI drive and so on.\n"
"\n"
"To partition the selected hard disk drive, you can use these options:\n"
"\n"
-" * \"%s\": this option deletes all partitions on the selected hard disk drive\n"
+" * \"%s\": this option deletes all partitions on the selected hard disk "
+"drive\n"
"\n"
" * \"%s\": this option enables you to automatically create ext4 and swap\n"
"partitions in the free space of your hard disk drive\n"
@@ -1039,7 +1050,8 @@ msgid ""
"unmount removable media such as floppies and CD-ROMs.\n"
"\n"
" * \"%s\": use this option if you wish to use a wizard to partition your\n"
-"hard disk drive. This is recommended if you do not have a good understanding of\n"
+"hard disk drive. This is recommended if you do not have a good understanding "
+"of\n"
"partitioning.\n"
"\n"
" * \"%s\": use this option to cancel your changes.\n"
@@ -1047,7 +1059,8 @@ msgid ""
" * \"%s\": allows additional actions on partitions (type, options, format)\n"
"and gives more information about the hard disk drive.\n"
"\n"
-" * \"%s\": when you are finished partitioning your hard disk drive, this will\n"
+" * \"%s\": when you are finished partitioning your hard disk drive, this "
+"will\n"
"save your changes back to disk.\n"
"\n"
"When defining the size of a partition, you can finely set the partition\n"
@@ -1168,20 +1181,24 @@ msgstr "Prebaci u normalni mod"
#: ../help.pm:536
#, fuzzy, c-format
msgid ""
-"More than one Microsoft partition has been detected on your hard disk drive.\n"
+"More than one Microsoft partition has been detected on your hard disk "
+"drive.\n"
"Please choose the one which you want to resize in order to install your new\n"
"Mageia operating system.\n"
"\n"
"Each partition is listed as follows: \"Linux name\", \"Windows name\"\n"
"\"Capacity\".\n"
"\n"
-"\"Linux name\" is structured: \"hard disk drive type\", \"hard disk drive number\",\n"
+"\"Linux name\" is structured: \"hard disk drive type\", \"hard disk drive "
+"number\",\n"
"\"partition number\" (for example, \"hda1\").\n"
"\n"
-"\"Hard disk drive type\" is \"hd\" if your hard dive is an IDE hard disk drive and\n"
+"\"Hard disk drive type\" is \"hd\" if your hard dive is an IDE hard disk "
+"drive and\n"
"\"sd\" if it is a SCSI hard disk drive.\n"
"\n"
-"\"Hard disk drive number\" is always a letter after \"hd\" or \"sd\". With IDE\n"
+"\"Hard disk drive number\" is always a letter after \"hd\" or \"sd\". With "
+"IDE\n"
"hard disk drives:\n"
"\n"
" * \"a\" means \"master hard disk drive on the primary IDE controller\";\n"
@@ -1192,10 +1209,12 @@ msgid ""
"\n"
" * \"d\" means \"slave hard disk drive on the secondary IDE controller\".\n"
"\n"
-"With SCSI hard disk drives, an \"a\" means \"lowest SCSI ID\", a \"b\" means\n"
+"With SCSI hard disk drives, an \"a\" means \"lowest SCSI ID\", a \"b\" "
+"means\n"
"\"second lowest SCSI ID\", etc.\n"
"\n"
-"\"Windows name\" is the letter of your hard disk drive under Windows (the first\n"
+"\"Windows name\" is the letter of your hard disk drive under Windows (the "
+"first\n"
"disk or partition is called \"C:\")."
msgstr ""
"Više od jedne Microsoft Windows particije su pronađene\n"
@@ -1251,7 +1270,8 @@ msgid ""
" * \"%s\". For the most part, this completely wipes out the old system.\n"
"However, depending on your partitioning scheme, you can prevent some of\n"
"your existing data (notably \"home\" directories) from being over-written.\n"
-"If you wish to change how your hard disk drives are partitioned, or to change\n"
+"If you wish to change how your hard disk drives are partitioned, or to "
+"change\n"
"the filesystem, you should use this option.\n"
"\n"
" * \"%s\". This installation class allows you to update the packages\n"
@@ -1685,8 +1705,10 @@ msgstr ""
#, fuzzy, c-format
msgid ""
"Click on \"%s\" if you want to delete all data and partitions present on\n"
-"this hard disk drive. Be careful, after clicking on \"%s\", you will not be able\n"
-"to recover any data and partitions present on this hard disk drive, including\n"
+"this hard disk drive. Be careful, after clicking on \"%s\", you will not be "
+"able\n"
+"to recover any data and partitions present on this hard disk drive, "
+"including\n"
"any Windows data.\n"
"\n"
"Click on \"%s\" to quit this operation without losing data and partitions\n"
mg-$main", "$img"); } } if ($arch =~ /i.86/ && $img =~ /all/) { isolinux($main, @kernels); } if (my ($tftpboot) = grep { -e $_ } qw(/tftpboot /var/lib/tftpboot)) { system("/bin/cp -f kernel/all.kernels/$main/boot/vmlinu* $tftpboot/vmlinuz 2>/dev/null"); system("/bin/cp -f images/network.rdz-$main $tftpboot/network.rdz 2>/dev/null"); } sub install_stripped { _ "strip $_[0]"; _ "$sudo install $_[0] $_[1]" } sub initrd { my ($mnt, $img) = @_; my ($ltype, $I) = $type =~ /(.*?)(64)/; $ltype ||= $type; my $tmp = "$ENV{HOME}/tmp/initrd"; my $tar = "$instdir/stage1-data/stage1.tar.bz2"; __ "$sudo umount $tmp $mnt 2>/dev/null"; _ "dd if=/dev/zero of=$tmp bs=1k count=" . ($arch =~ /ia64/ ? ($type eq "all" ? 16386 : 16384) : ($type eq "all" ? 4000 : 2000)); _ "$mke2fs $tmp"; _ "$sudo mount -t ext2 $tmp $mnt -o loop"; _ "$sudo tar xjC $mnt -f $tar"; install_stripped("$instdir/init", "$mnt/sbin"); install_stripped("$instdir/$install", "$mnt/sbin/stage1"); if ($type eq "network" || $type eq "usb" || $type eq "all" || $type eq "other" || $type eq "blank") { install_stripped("$instdir/ppp/pppd-bin", "$mnt/sbin/pppd"); install_stripped("$instdir/rp-pppoe/pppoe-bin", "$mnt/sbin/pppoe"); _ "$sudo mknod $mnt/dev/ppp c 108 0"; _ "$sudo mknod $mnt/dev/ptyp0 c 2 0"; _ "$sudo mknod $mnt/dev/ttyp0 c 3 0"; } if (member($type, qw(pcmcia all network)) && $arch !~ /ppc/ && $arch !~ /ia64/) { _ "$sudo cp -a /etc/pcmcia $mnt/etc"; _ "cp $mnt/etc/pcmcia/config /tmp/pcmcia_config_tmp"; _ "tools/patch_pcmcia_config.pl /tmp/pcmcia_config_tmp kernel/all.modules/$main/modules.dep"; _ "sudo mv /tmp/pcmcia_config_tmp $mnt/etc/pcmcia/config"; } my ($ext) = $img =~ /rdz-(.*)/ or die "bad initrd name ($img)"; $modz = "kernel/all.modules$I/$ext"; _ "$sudo cp -f $modz/${ltype}_modules.mar $mnt/modules/modules$I.mar" if $type !~ /blank/; _ "$sudo cp -f $modz/modules.dep $mnt/modules/"; _ "$sudo umount $mnt"; # Workaround for vfat-loop bug (quite touchy) _ "gzip -9f $tmp"; _ "cp -f $tmp.gz $img"; _ "rm -f $tmp.gz"; # _ "gzip -9 -c $tmp > $img"; # _ "rm -f $tmp"; } sub entries_append { my ($type) = @_; my $automatic = ""; $automatic = "automatic=method:cdrom" if ($type eq "cdrom"); $automatic = "automatic=method:disk" if ($type eq "hd"); my @simple_entries = ( linux => "$default_vga", vgalo => "vga=785", vgahi => "vga=791", vga16 => "vga16", text => "text", patch => "patch $default_vga", expert => "expert $default_vga", rescue => "rescue rw", ); my @entries = ( (map { $_->[0] => "$automatic $_->[1]" } group_by2(@simple_entries)), if_(member($type, "cdrom", "all"), oem => "automatic=method:cdrom $default_vga rescue oem rw"), if_($type eq "all", all => "pcmcia $default_vga"), ); map { [ $_->[0], "$default_append $_->[1]" ] } group_by2(@entries); } sub boot_img_i386 { my ($mnt, $img, $kernel) = @_; __ "$sudo umount $mnt 2>/dev/null"; if ($type eq "hd") { _ "bunzip2 -c $instdir/init-data/msgboot.img.bz2 > $img"; } elsif ($type eq "all") { _ "bunzip2 -c $instdir/init-data/msgboot-graphicallogo-2880.img.bz2 > $img"; } elsif ($type eq "blank") { _ "bunzip2 -c $instdir/init-data/msgboot-blank.img.bz2 > $img"; } else { _ "bunzip2 -c $instdir/init-data/msgboot-graphicallogo.img.bz2 > $img"; } _ "$sudo mount -t vfat -o umask=0 $img $mnt -o loop"; _ "cat $kernel > $mnt/vmlinuz" if $type !~ /blank/; my $rdz = $img; $rdz =~ s/\.img/.rdz/; initrd("${mnt}2", $rdz) if !-e $rdz; eval { _ "cp -f $rdz $mnt/$type.rdz" }; if ($@) { unlink "$mnt/$type.rdz"; my $avail = (split ' ', `df $mnt`)[-3]; my $s = int((-s $rdz) / 1024); die sprintf("not enough room for $rdz: need %dKB (available %dKB < needed %dKB)\n", $s - $avail, $avail, $s); } my $timeout = 72; output "$mnt/syslinux.cfg", "default linux prompt 1 timeout $timeout display boot.msg F1 help.msg F2 advanced.msg F3 boot.msg " . join('', map { "label $_->[0] kernel vmlinuz append initrd=$type.rdz $_->[1] " } entries_append($type)); _ "sync"; _ "df $mnt"; } sub boot_img_alpha { my ($mnt, $img) = @_; __ "$sudo umount $mnt 2>/dev/null"; _ "dd if=/dev/zero of=$img bs=1k count=1440"; _ "$mke2fs $img"; _ "/sbin/e2writeboot $img /boot/bootlx"; _ "$sudo mount -t ext2 $img $mnt -o loop"; _ "cp -f vmlinux.gz $mnt" if $type !~ /blank/; -f "$type.rdz" ? _ "cp -f $type.rdz $mnt" : initrd("${mnt}2", "$mnt/$type.rdz"); mkdir "$mnt/etc", 0777; output("$mnt/etc/aboot.conf", "0:vmlinux.gz initrd=$type.rdz rw $default_append $type 1:vmlinux.gz initrd=$type.rdz rw $default_append text $type "); _ "sync"; _ "df $mnt"; } sub boot_img_ia64 { my ($mnt, $img, $kernel) = @_; my $rdz = $img; $rdz =~ s/\.img/.rdz/; __ "$sudo umount $mnt 2>/dev/null"; _ "dd if=/dev/zero of=$img bs=1k count=16384"; _ "mkdosfs $img"; _ "$sudo mount -t vfat $img $mnt -o loop,umask=000"; _ "$sudo cp -f $kernel $mnt/vmlinux"; _ "cp -f $rdz $mnt/$type.rdz"; _ "$sudo cp -f tools/ia64/elilo.efi $mnt"; output("$mnt/elilo.conf", " prompt timeout=50 image=vmlinux label=linux root=/dev/ram3 initrd=$type.rdz append=\" ramdisk_size=120000\" read-only image=vmlinux label=rescue root=/dev/ram3 initrd=$type.rdz append=\" rescue ramdisk_size=120000\" "); _ "sync"; _ "df $mnt"; } sub boot_img_sparc { my ($mnt, $img) = @_; if ($type =~ /^live(.*)/) { #- hack to produce directly into /export the needed file for cdrom boot. my $dir = "/export"; my $boot = "boot"; #- non-absolute pathname only! _ "mkdir -p $dir/$boot"; _ "cp -f /boot/cd.b /boot/second.b $dir/$boot"; _ "cp -f vmlinux$1 $dir/$boot/vmlinux$1"; -f "live$1.rdz" ? _ "cp -f live$1.rdz $dir/$boot" : initrd("${mnt}2", "$dir/$boot/live$1.rdz"); output("$dir/$boot/silo.conf", " partition=1 default=linux timeout=100 read-write message=/$boot/boot.msg image=\"cat /$boot/boot.msg\" label=1 single-key image=\"cat /$boot/general.msg\" label=2 single-key image=\"cat /$boot/expert.msg\" label=3 single-key image=\"cat /$boot/rescue.msg\" label=4 single-key image=\"cat /$boot/kickit.msg\" label=5 single-key image=\"cat /$boot/param.msg\" label=6 single-key image[sun4c,sun4d,sun4m]=/$boot/vmlinux label=linux alias=install initrd=/$boot/live.rdz append=\"ramdisk_size=32000 root=/dev/ram3\" image[sun4c,sun4d,sun4m]=/$boot/vmlinux label=text initrd=/$boot/live.rdz append=\"ramdisk_size=32000 text root=/dev/ram3\" image[sun4c,sun4d,sun4m]=/$boot/vmlinux label=expert initrd=/$boot/live.rdz append=\"ramdisk_size=32000 expert root=/dev/ram3\" image[sun4c,sun4d,sun4m]=/$boot/vmlinux label=ks initrd=/$boot/live.rdz append=\"ramdisk_size=32000 ks root=/dev/ram3\" image[sun4c,sun4d,sun4m]=/$boot/vmlinux label=rescue initrd=/$boot/live.rdz append=\"ramdisk_size=32000 rescue rw root=/dev/ram3\" image[sun4u]=/$boot/vmlinux64 label=linux alias=install initrd=/$boot/live64.rdz append=\"ramdisk_size=32000 root=/dev/ram3\" image[sun4u]=/$boot/vmlinux64 label=text initrd=/$boot/live64.rdz append=\"ramdisk_size=32000 text root=/dev/ram3\" image[sun4u]=/$boot/vmlinux64 label=expert initrd=/$boot/live64.rdz append=\"ramdisk_size=32000 expert root=/dev/ram3\" image[sun4u]=/$boot/vmlinux64 label=ks initrd=/$boot/live64.rdz append=\"ramdisk_size=32000 ks root=/dev/ram3\" image[sun4u]=/$boot/vmlinux64 label=rescue initrd=/$boot/live64.rdz append=\"ramdisk_size=32000 rescue rw root=/dev/ram3\" "); output("$dir/$boot/README", " To Build a Bootable CD-ROM, try: mkisofs -R -o t.iso -s /$boot/silo.conf /export "); } elsif ($type =~ /^tftprd(.*)/) { my $dir = "/export"; my $boot = "images"; my $setarch = $1 ? "sparc64" : "sparc32"; _ "mkdir -p $dir/$boot"; -f "$type.rdz" or initrd("${mnt}2", "$type.rdz"); _ "cp -f vmlinux$1.aout $dir/$boot/$type.img"; _ "$setarch kernel$1/src/arch/sparc$1/boot/piggyback $dir/$boot/$type.img kernel$1/boot/System.map $type.rdz"; } elsif ($type =~ /^tftp(.*)/) { my $dir = "/export"; my $boot = "images"; _ "mkdir -p $dir/$boot"; _ "cp -f vmlinux$1.aout $dir/$boot/$type.img"; } else { my $dir = "floppy"; my ($ltype, $I) = $type =~ /(.*?)(64)/; $ltype ||= $type; __ "$sudo umount $mnt 2>/dev/null"; _ "rm -rf $dir"; _ "mkdir -p $dir"; _ "cp -f /boot/fd.b /boot/second.b $dir"; _ "cp -f vmlinuz$I $dir/vmlinux$I.gz" if $type !~ /blank/; -f "$type.rdz" ? _ "cp -f $type.rdz $dir" : initrd("${mnt}2", "$dir/$type.rdz"); output("$dir/boot.msg", " Welcome to Mandrake Linux 7.1 Press <Enter> to install or upgrade a system 7mMandrake Linux7m "); output("$dir/silo.conf", " partition=1 default=linux timeout=100 read-write message=/boot.msg image=/vmlinux$I.gz label=linux initrd=/$type.rdz append=\"ramdisk_size=32000 $ltype root=/dev/ram3\" "); _ "genromfs -d $dir -f /dev/ram -A 2048,/.. -a 512 -V \'DrakX boot disk\'"; _ "$sudo mount -t romfs /dev/ram $mnt"; _ "silo -r $mnt -F -i /fd.b -b /second.b -C /silo.conf"; _ "$sudo umount $mnt"; _ "dd if=/dev/ram of=$type.img bs=1440k count=1"; _ "sync"; _ "$sudo mount -t romfs /dev/ram $mnt"; _ "df $mnt"; } } sub boot_img_ppc { my ($mnt, $img, $kern, $modz) = @_; my $dir = "/export"; my $boot = "boot"; #- non-absolute pathname only! my ($extension) = $modz =~ /.*\/([^\/]+)/; _ "mkdir -p $dir/$boot"; _ "cp -f $kern $dir/$boot/vmlinux"; _ "cp -f images/all.rdz$extension $dir/boot/all.gz"; _ "cp -f tools/ppc/yaboot $dir/boot/yaboot"; output("$dir/$boot/yaboot.conf", " init-message = \"\\nWelcome to Mandrake Linux PPC!\\nHit <TAB> for boot options.\\n\\n\" timeout = 150 default = install-novideo image = cd:,\\\\\\\\vmlinux label = install-novideo root = /dev/ram3 initrd = cd:,\\\\\\\\all.gz initrd-size = 32000 append = \" video=ofonly\" image = cd:,\\\\\\\\vmlinux label = install-atyfb root = /dev/ram3 initrd = cd:,\\\\\\\\all.gz initrd-size = 32000 append = \" video=atyfb:vmode:17\" image = cd:,\\\\\\\\vmlinux label = install-aty128fb root = /dev/ram3 initrd = cd:,\\\\\\\\all.gz initrd-size = 32000 append = \" video=aty128fb:vmode:17\" image = cd:,\\\\\\\\vmlinux label = install-text root = /dev/ram3 initrd = cd:,\\\\\\\\all.gz initrd-size = 32000 append = \" text video=ofonly\" image = enet:0,vmlinux label = install-net root = /dev/ram3 initrd = enet:0,all.gz initrd-size = 32000 append = \" video=ofonly\" image = enet:0,vmlinux label = install-net-text root = /dev/ram3 initrd = enet:0,all.gz initrd-size = 32000 append = \" text video=ofonly\" image = cd:,\\\\\\\\vmlinux label = rescue root = /dev/ram3 initrd = cd:,\\\\\\\\all.gz initrd-size = 32000 append = \" rescue video=ofonly\" image = enet:0,vmlinux label = rescue-net root = /dev/ram3 initrd = enet:0,all.gz initrd-size = 32000 append = \" rescue video=ofonly\" "); #- seem to need 2 yaboot.conf, one in the root, and one in boot _ "cp -f $dir/boot/yaboot.conf $dir/yaboot.conf"; output("$dir/$boot/README", " To Build a Bootable CD-ROM, do: cd /tools/ppc ./mkINSTALLCD /export ppc-cd.img "); } sub isolinux { my ($main, @kernels) = @_; @kernels = ($main, grep { $_ ne $main } @kernels); _ "rm -rf isolinux"; mkdir "isolinux", 0777; my $i = 0; foreach (@kernels) { mkdir "isolinux/alt$i", 0777; my ($kernel) = glob("kernel/all.kernels/$_/boot/vmlinu*"); _ "cp $kernel isolinux/alt$i/vmlinuz"; _ "cp images/all.rdz-$_ isolinux/alt$i/all.rdz"; $i++; } if (-e "isolinux-graphic.bmp") { #- change here for newer picture isolinux-graphic.bmp and newer parameters. _ "lilo-bmp2mdk mode:0x103 progress:425,173,16,8,64+2 clear:600,800,64+2 pos:0,0 <isolinux-graphic.bmp >isolinux/boot.msg"; } _ "cp /usr/lib/syslinux/isolinux.bin isolinux/isolinux.bin"; output "isolinux/isolinux.cfg", " default linux prompt 1 timeout 150 " . (-e "isolinux/boot.msg" ? "display boot.msg" : "display help.msg") . " F1 help.msg F2 advanced.msg " . (-e "isolinux/boot.msg" && "F3 boot.msg") . " " . join('', map { "label $_->[0] kernel alt0/vmlinuz append initrd=alt0/all.rdz $_->[1] automatic=method:cdrom " } entries_append('all')) . join('', map_index { "label alt$::i kernel alt$::i/vmlinuz append initrd=alt$::i/all.rdz $default_append $default_vga " } @kernels); output "isolinux/help.msg", (-e "isolinux/boot.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 0e<Enter>07 key. If you experience problems with standard install, try one of the following install types (type the highlighted text and press 0e<Enter>07): 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 0e<Enter>07. You can also pass some 0f<specific kernel options>07 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. " . (-e "isolinux/boot.msg" ? "0c[F1-Help] [F2-Advanced Help] [F3-Main]07" : "0c[F1-Help] [F2-Advanced Help]07") . "\n"; output "isolinux/advanced.msg", (-e "isolinux/boot.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. You can choose the following kernels : " . join('', map_index { " o 0alt$::i07 is kernel $_\n" } @kernels) . " " . (-e "isolinux/boot.msg" ? "0c[F1-Help] [F2-Advanced Help] [F3-Main]07" : "0c[F1-Help] [F2-Advanced Help]07") . "\n"; }