summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/po/wa.po
diff options
context:
space:
mode:
authorFunda Wang <fwang@mandriva.org>2007-07-01 11:44:05 +0000
committerFunda Wang <fwang@mandriva.org>2007-07-01 11:44:05 +0000
commite63b909f49cbebf3578de25e3843908b6afd2c6b (patch)
tree4cb83168a33d385b9c00df0e4e14cea2373a2319 /perl-install/standalone/po/wa.po
parent870adce0f07facbd0101f723228433131e106c0a (diff)
downloaddrakx-e63b909f49cbebf3578de25e3843908b6afd2c6b.tar
drakx-e63b909f49cbebf3578de25e3843908b6afd2c6b.tar.gz
drakx-e63b909f49cbebf3578de25e3843908b6afd2c6b.tar.bz2
drakx-e63b909f49cbebf3578de25e3843908b6afd2c6b.tar.xz
drakx-e63b909f49cbebf3578de25e3843908b6afd2c6b.zip
Updated POT file
Diffstat (limited to 'perl-install/standalone/po/wa.po')
-rw-r--r--perl-install/standalone/po/wa.po392
1 files changed, 180 insertions, 212 deletions
diff --git a/perl-install/standalone/po/wa.po b/perl-install/standalone/po/wa.po
index 089a4d21d..19d91afad 100644
--- a/perl-install/standalone/po/wa.po
+++ b/perl-install/standalone/po/wa.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: DrakX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-03-21 12:08+0100\n"
+"POT-Creation-Date: 2007-07-01 13:42+0200\n"
"PO-Revision-Date: 2006-09-05 19:54+0200\n"
"Last-Translator: Pablo Saratxaga <pablo@walon.org>\n"
"Language-Team: Walloon <linux-wa@walon.org>\n"
@@ -19,170 +19,42 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: KBabel 1.9.1\n"
-#: drakautoinst:37
-#, c-format
-msgid "Error!"
-msgstr "Aroke!"
-
-#: drakautoinst:38
-#, c-format
-msgid "I can not find needed image file `%s'."
-msgstr "Dji n' sai trover li fitchî imådje «%s» k' i gn a mezåjhe."
-
-#: drakautoinst:40
-#, c-format
-msgid "Auto Install Configurator"
-msgstr "Apontieu di l' astalaedje otomatike"
-
-#: drakautoinst:41
-#, c-format
-msgid ""
-"You are about to configure an Auto Install floppy. This feature is somewhat "
-"dangerous and must be used circumspectly.\n"
-"\n"
-"With that feature, you will be able to replay the installation you've "
-"performed on this computer, being interactively prompted for some steps, in "
-"order to change their values.\n"
-"\n"
-"For maximum safety, the partitioning and formatting will never be performed "
-"automatically, whatever you chose during the install of this computer.\n"
-"\n"
-"Press ok to continue."
-msgstr ""
-"Vos alez apontyî ene plakete d' oto-astalaedje. Cisse fonccionålité pout "
-"esse pa des côps ene miete riskeuse et doet esse eployeye avou sogne.\n"
-"\n"
-"Avou cisse fonccionålité, vos pôroz rfé li minme astalåcion ki vos vnoz "
-"d' fé so cisse copiutrece chal, avou seulmint sacwantès kesses eteractives "
-"po pleur candjî sacwantès valixhances.\n"
-"\n"
-"Po pus di såvrité, l' etape di l' abwesnaedje des deurès plakes ni srè måy "
-"fwait otomaticmint.\n"
-"\n"
-"Clitchî «'l est bon» po continouwer."
-
-#: drakautoinst:59
-#, c-format
-msgid "replay"
-msgstr "Rifé"
-
-#: drakautoinst:59 drakautoinst:68
-#, c-format
-msgid "manual"
-msgstr "Al mwin"
-
-#: drakautoinst:63
-#, c-format
-msgid "Automatic Steps Configuration"
-msgstr "Apontiaedje des etapes otomatikes"
-
-#: drakautoinst:64
-#, c-format
-msgid ""
-"Please choose for each step whether it will replay like your install, or it "
-"will be manual"
-msgstr ""
-"S' i vs plait, tchoezixhoz po tchaeke etape s' i l' fåt rifé come vos "
-"l' avoz fwait po voste astalaedje, ou s' i l' fåt fé manuwelmint"
-
-#: drakautoinst:75
-#, c-format
-msgid "Insert a blank floppy in drive %s"
-msgstr "Metoz ene blanke plakete divins li lijheu %s"
-
-#: drakautoinst:76 drakautoinst:77 drakautoinst:91
-#, c-format
-msgid "Creating auto install floppy"
-msgstr "Dji fé li plakete d' enondaedje otomatike"
-
-#: drakautoinst:89
-#, c-format
-msgid "Insert another blank floppy in drive %s (for drivers disk)"
-msgstr "Metoz ene ôte blanke plakete divins l' lijheu %s (po les mineus)"
-
-#: drakautoinst:90
-#, c-format
-msgid "Creating auto install floppy (drivers disk)"
-msgstr "Dji fé li plakete d' enondaedje otomatike (avou les mineus)"
-
-#: drakautoinst:155
-#, c-format
-msgid ""
-"\n"
-"Welcome.\n"
-"\n"
-"The parameters of the auto-install are available in the sections on the left"
-msgstr ""
-"\n"
-"Bénvnowe.\n"
-"\n"
-"Les parametes di l' astalaedje otomatike sont ezès seccions sol hintche"
-
-#: drakautoinst:249 scannerdrake:420
-#, c-format
-msgid "Congratulations!"
-msgstr "Complumints!"
-
-#: drakautoinst:250
-#, c-format
-msgid ""
-"The floppy has been successfully generated.\n"
-"You may now replay your installation."
-msgstr ""
-"Li plakete a stî fwaite comifåt.\n"
-"Vos ploz asteure rifé èn astalaedje avou."
-
-#: drakautoinst:286
-#, c-format
-msgid "Auto Install"
-msgstr "Astalaedje otomatike"
-
-#: drakautoinst:355
-#, c-format
-msgid "Add an item"
-msgstr "Radjouter on cayet"
-
-#: drakautoinst:362
-#, c-format
-msgid "Remove the last item"
-msgstr "Oister li dierin cayet"
-
#: drakboot:49
#, c-format
msgid "No bootloader found, creating a new configuration"
msgstr "Nole enondrece di trvêye, askepiant on novea apontiaedje"
-#: drakboot:86 harddrake2:194 harddrake2:195 logdrake:70
+#: drakboot:83 harddrake2:194 harddrake2:195 logdrake:70
#, c-format
msgid "/_File"
msgstr "/_Fitchî"
-#: drakboot:87 logdrake:76
+#: drakboot:84 logdrake:76
#, c-format
msgid "/File/_Quit"
msgstr "/Fitchî/Moussî _foû"
-#: drakboot:87 harddrake2:195 logdrake:76
+#: drakboot:84 harddrake2:195 logdrake:76
#, c-format
msgid "<control>Q"
msgstr "<control>Q"
-#: drakboot:127
+#: drakboot:124
#, c-format
msgid "Text only"
msgstr "Seulmint tecse"
-#: drakboot:128
+#: drakboot:125
#, c-format
msgid "Verbose"
msgstr "Badjawe"
-#: drakboot:129
+#: drakboot:126
#, c-format
msgid "Silent"
msgstr "Sins nou brut"
-#: drakboot:136
+#: drakboot:133
#, c-format
msgid ""
"Your system bootloader is not in framebuffer mode. To activate graphical "
@@ -192,32 +64,32 @@ msgstr ""
"alaedje l' enondaedje grafike, tchoezixhoz on môde videyo grafike avou "
"l' usteye d' apontiaedje di l' enondrece."
-#: drakboot:137
+#: drakboot:134
#, c-format
msgid "Do you want to configure it now?"
msgstr "El voloz vs apontyî do côp?"
-#: drakboot:146
+#: drakboot:143
#, c-format
msgid "Install themes"
msgstr "Astaler tinmes"
-#: drakboot:148
+#: drakboot:145
#, c-format
msgid "Graphical boot theme selection"
msgstr "Tchuze do tinme grafike po l' enondaedje"
-#: drakboot:151
+#: drakboot:148
#, c-format
msgid "Graphical boot mode:"
msgstr "Môde d' enondaedje grafike:"
-#: drakboot:153
+#: drakboot:150
#, c-format
msgid "Theme"
msgstr "Tinme"
-#: drakboot:156
+#: drakboot:153
#, c-format
msgid ""
"Display theme\n"
@@ -226,42 +98,42 @@ msgstr ""
"Håyner tinme\n"
"dizo l' conzôle"
-#: drakboot:161 draksplash:25
+#: drakboot:158 draksplash:25
#, c-format
msgid "Create new theme"
msgstr "Askepyî on novea tinme"
-#: drakboot:193
+#: drakboot:190
#, c-format
msgid "Default user"
msgstr "Prémetowe uzeu"
-#: drakboot:194
+#: drakboot:191
#, c-format
msgid "Default desktop"
msgstr "Prémetou scribanne"
-#: drakboot:197
+#: drakboot:194
#, c-format
msgid "No, I do not want autologin"
msgstr "Neni, dji n' vou nén di l' elodjaedje otomatike"
-#: drakboot:198
+#: drakboot:195
#, c-format
msgid "Yes, I want autologin with this (user, desktop)"
msgstr "Oyi, dji vou l' elodjaedje otomatike po ci (uzeu, scribanne) chal"
-#: drakboot:205
+#: drakboot:202
#, c-format
msgid "System mode"
msgstr "Môde do sistinme"
-#: drakboot:208
+#: drakboot:205
#, c-format
msgid "Launch the graphical environment when your system starts"
msgstr "Enonder li sistinme X-Window a l' enonda di l' éndjole"
-#: drakboot:263
+#: drakboot:260
#, c-format
msgid ""
"Please choose a video mode, it will be applied to each of the boot entries "
@@ -509,93 +381,93 @@ msgstr "Cweri les fontes astalêyes"
msgid "Unselect fonts installed"
msgstr "Distchoezi les fontes astalêyes"
-#: drakfont:212
-#, c-format
-msgid "parse all fonts"
-msgstr "analijhî totes les fontes"
-
-#: drakfont:214
+#: drakfont:213
#, c-format
msgid "No fonts found"
msgstr "Nole fonte di trovêye"
-#: drakfont:222 drakfont:264 drakfont:333 drakfont:374 drakfont:382
-#: drakfont:408 drakfont:426 drakfont:440
+#: drakfont:217
+#, c-format
+msgid "parse all fonts"
+msgstr "analijhî totes les fontes"
+
+#: drakfont:222 drakfont:263 drakfont:332 drakfont:373 drakfont:381
+#: drakfont:407 drakfont:425 drakfont:439
#, c-format
msgid "done"
msgstr "fwait"
-#: drakfont:227
+#: drakfont:226
#, c-format
msgid "Could not find any font in your mounted partitions"
msgstr "Dji n' a trové nole fonte so vos montêyès pårticions"
-#: drakfont:262
+#: drakfont:261
#, c-format
msgid "Reselect correct fonts"
msgstr "Ritchoezi les fontes corekes"
-#: drakfont:265
+#: drakfont:264
#, c-format
msgid "Could not find any font.\n"
msgstr "Dji n' a trové nole fonte.\n"
-#: drakfont:275
+#: drakfont:274
#, c-format
msgid "Search for fonts in installed list"
msgstr "Cweri el djivêye des fontes astalêyes"
-#: drakfont:294
+#: drakfont:293
#, c-format
msgid "%s fonts conversion"
msgstr "coviertixhaedje di %s fontes"
-#: drakfont:331
+#: drakfont:330
#, c-format
msgid "Fonts copy"
msgstr "Copiaedje des fontes"
-#: drakfont:334
+#: drakfont:333
#, c-format
msgid "True Type fonts installation"
msgstr "Astalaedje des fontes True Type"
-#: drakfont:342
+#: drakfont:341
#, c-format
msgid "please wait during ttmkfdir..."
msgstr "tårdjîz s' i vs plait, dj' enonde ttmkfdir..."
-#: drakfont:343
+#: drakfont:342
#, c-format
msgid "True Type install done"
msgstr "Astalaedje des fontes True Type fwait"
-#: drakfont:349 drakfont:364
+#: drakfont:348 drakfont:363
#, c-format
msgid "type1inst building"
msgstr "enondaedje di type1inst"
-#: drakfont:358
+#: drakfont:357
#, c-format
msgid "Ghostscript referencing"
msgstr "Fijhaedje di referinces po Ghostscript"
-#: drakfont:375
+#: drakfont:374
#, c-format
msgid "Suppress Temporary Files"
msgstr "Bodjî les fitchîs timporaires"
-#: drakfont:378 drakfont:436
+#: drakfont:377 drakfont:435
#, c-format
msgid "Restart XFS"
msgstr "Renonder XFS"
-#: drakfont:424 drakfont:434
+#: drakfont:423 drakfont:433
#, c-format
msgid "Suppress Fonts Files"
msgstr "Bodjî les fitchîs di fontes"
-#: drakfont:444
+#: drakfont:443
#, c-format
msgid ""
"Before installing any fonts, be sure that you have the right to use and "
@@ -610,168 +482,168 @@ msgstr ""
"Vos ploz astaler les fontes del manire normåle. Dins des råles cas, des "
"crombès fontes polèt crasher vosse sierveu X."
-#: drakfont:484
+#: drakfont:483
#, c-format
msgid "Font Installation"
msgstr "Astalaedje di fontes"
-#: drakfont:495
+#: drakfont:494
#, c-format
msgid "DrakFont"
msgstr "DrakFont"
-#: drakfont:496 drakfont:648
+#: drakfont:495 drakfont:647
#, c-format
msgid "Font List"
msgstr "Djivêye des fontes"
-#: drakfont:499
+#: drakfont:498
#, c-format
msgid "Get Windows Fonts"
msgstr ""
"Prinde les\n"
"fontes Windows"
-#: drakfont:505
+#: drakfont:504
#, c-format
msgid "About"
msgstr "Åd fwait"
-#: drakfont:507 drakfont:727
+#: drakfont:506 drakfont:726
#, c-format
msgid "Uninstall"
msgstr "Dizastaler"
-#: drakfont:508
+#: drakfont:507
#, c-format
msgid "Import"
msgstr "Astaler"
-#: drakfont:526
+#: drakfont:525
#, c-format
msgid "Drakfont"
msgstr "Drakfont"
-#: drakfont:528
+#: drakfont:527
#, c-format
msgid "Copyright (C) 2001-2006 by Mandriva"
msgstr "Copyright © 2001-2006 pa Mandriva"
-#: drakfont:530
+#: drakfont:529
#, c-format
msgid "Font installer."
msgstr "Astaleu d' fontes."
-#: drakfont:532 harddrake2:236
+#: drakfont:531 harddrake2:236
#, c-format
msgid "Mandriva Linux"
msgstr "Mandriva Linux"
#. -PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>")
#. -PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>")
-#: drakfont:539 harddrake2:241
+#: drakfont:538 harddrake2:241
#, c-format
msgid "_: Translator(s) name(s) & email(s)\n"
msgstr "Pablo Saratxaga <pablo@mandriva.com>\n"
-#: drakfont:549
+#: drakfont:548
#, c-format
msgid "Choose the applications that will support the fonts:"
msgstr "Tchoezixhoz li programe ki va-st eployî les fontes:"
-#: drakfont:560
+#: drakfont:559
#, c-format
msgid "Ghostscript"
msgstr "Ghostscript"
-#: drakfont:561
+#: drakfont:560
#, c-format
msgid "OpenOffice.org"
msgstr "OpenOffice.org"
-#: drakfont:562
+#: drakfont:561
#, c-format
msgid "Abiword"
msgstr "Abiword"
-#: drakfont:563
+#: drakfont:562
#, c-format
msgid "Generic Printers"
msgstr "Sicrireces djenerikes"
-#: drakfont:577
+#: drakfont:576
#, c-format
msgid "Select the font file or directory and click on 'Add'"
msgstr ""
"Tchoezixhoz li fitchî d' fonte ou l' ridant a radjouter, et clitchîz so "
"«Radjouter»"
-#: drakfont:578
+#: drakfont:577
#, c-format
msgid "File Selection"
msgstr "Tchoezi les fitchîs"
-#: drakfont:582
+#: drakfont:581
#, c-format
msgid "Fonts"
msgstr "Fontes"
-#: drakfont:646
+#: drakfont:645
#, c-format
msgid "Import fonts"
msgstr "Abaguer les fontes"
-#: drakfont:659
+#: drakfont:658
#, c-format
msgid "Install"
msgstr "Astaler"
-#: drakfont:690
+#: drakfont:689
#, c-format
msgid "Are you sure you want to uninstall the following fonts?"
msgstr "Estoz vs seur ki vos vloz disastaler les fontes ki shuvèt?"
-#: drakfont:735
+#: drakfont:734
#, c-format
msgid "Unselected All"
msgstr "Distchoezi tot"
-#: drakfont:738
+#: drakfont:737
#, c-format
msgid "Selected All"
msgstr "Tchoezi tot"
-#: drakfont:752 drakfont:771
+#: drakfont:751 drakfont:770
#, c-format
msgid "Importing fonts"
msgstr "Abagaedje des fontes"
-#: drakfont:756 drakfont:776
+#: drakfont:755 drakfont:775
#, c-format
msgid "Initial tests"
msgstr "Sayes po cmincî"
-#: drakfont:757
+#: drakfont:756
#, c-format
msgid "Copy fonts on your system"
msgstr "Copyî les fontes so vosse sistinme"
-#: drakfont:758
+#: drakfont:757
#, c-format
msgid "Install & convert Fonts"
msgstr "Astaler & covierti les fontes"
-#: drakfont:759
+#: drakfont:758
#, c-format
msgid "Post Install"
msgstr "Post-astalaedje"
-#: drakfont:777
+#: drakfont:776
#, c-format
msgid "Remove fonts on your system"
msgstr "Oister les fontes foû di vosse sistinme"
-#: drakfont:778
+#: drakfont:777
#, c-format
msgid "Post Uninstall"
msgstr "Post-disastalaedje"
@@ -815,12 +687,12 @@ msgstr ""
" --doc <hårdêye> - hårdêye d' ene ôte pådje waibe (pol bénvnowe des "
"scribannes)\n"
-#: drakhelp:51
+#: drakhelp:52
#, c-format
msgid "Mandriva Linux Help Center"
msgstr "Cinte di l' aidance di Mandriva Linux"
-#: drakhelp:51
+#: drakhelp:52
#, c-format
msgid "No Help entry for %s\n"
msgstr "I n' a pont d' intrêye d' aidance po %s\n"
@@ -3168,6 +3040,11 @@ msgstr ""
msgid "edit the configuration file /etc/sane.d/%s.conf. "
msgstr "candjîz l' fitchî d' apontiaedje /etc/sane.d/%s.conf. "
+#: scannerdrake:420
+#, c-format
+msgid "Congratulations!"
+msgstr "Complumints!"
+
#: scannerdrake:421
#, c-format
msgid ""
@@ -3374,27 +3251,27 @@ msgstr ""
msgid "Your scanner(s) will not be available on the network."
msgstr "Vos scanrece(s) ni sront nén disponibes sol rantoele."
-#: service_harddrake:119
+#: service_harddrake:137
#, c-format
msgid "Some devices in the \"%s\" hardware class were removed:\n"
msgstr "Sacwants éndjins del classe d' éndjolreye «%s» ont stî bodjîs:\n"
-#: service_harddrake:120
+#: service_harddrake:138
#, c-format
msgid "- %s was removed\n"
msgstr "- %s a stî bodjî foû\n"
-#: service_harddrake:123
+#: service_harddrake:141
#, c-format
msgid "Some devices were added: %s\n"
msgstr "Sacwants éndjins ont stî radjoutés: %s\n"
-#: service_harddrake:124
+#: service_harddrake:142
#, c-format
msgid "- %s was added\n"
msgstr "- %s a stî radjouté\n"
-#: service_harddrake:245
+#: service_harddrake:265
#, c-format
msgid "Hardware probing in progress"
msgstr "Deteccion di l' éndjolreye en alaedje"
@@ -3409,6 +3286,97 @@ msgstr "Candjmints d' éndjolreye dins l' classe «%s» (%s segondes po respon
msgid "Do you want to run the appropriate config tool?"
msgstr "Voloz vs enonder l' usteye d' apontiaedje k' i fåt?"
+#~ msgid "Error!"
+#~ msgstr "Aroke!"
+
+#~ msgid "I can not find needed image file `%s'."
+#~ msgstr "Dji n' sai trover li fitchî imådje «%s» k' i gn a mezåjhe."
+
+#~ msgid "Auto Install Configurator"
+#~ msgstr "Apontieu di l' astalaedje otomatike"
+
+#~ msgid ""
+#~ "You are about to configure an Auto Install floppy. This feature is "
+#~ "somewhat dangerous and must be used circumspectly.\n"
+#~ "\n"
+#~ "With that feature, you will be able to replay the installation you've "
+#~ "performed on this computer, being interactively prompted for some steps, "
+#~ "in order to change their values.\n"
+#~ "\n"
+#~ "For maximum safety, the partitioning and formatting will never be "
+#~ "performed automatically, whatever you chose during the install of this "
+#~ "computer.\n"
+#~ "\n"
+#~ "Press ok to continue."
+#~ msgstr ""
+#~ "Vos alez apontyî ene plakete d' oto-astalaedje. Cisse fonccionålité pout "
+#~ "esse pa des côps ene miete riskeuse et doet esse eployeye avou sogne.\n"
+#~ "\n"
+#~ "Avou cisse fonccionålité, vos pôroz rfé li minme astalåcion ki vos vnoz "
+#~ "d' fé so cisse copiutrece chal, avou seulmint sacwantès kesses "
+#~ "eteractives po pleur candjî sacwantès valixhances.\n"
+#~ "\n"
+#~ "Po pus di såvrité, l' etape di l' abwesnaedje des deurès plakes ni srè "
+#~ "måy fwait otomaticmint.\n"
+#~ "\n"
+#~ "Clitchî «'l est bon» po continouwer."
+
+#~ msgid "replay"
+#~ msgstr "Rifé"
+
+#~ msgid "manual"
+#~ msgstr "Al mwin"
+
+#~ msgid "Automatic Steps Configuration"
+#~ msgstr "Apontiaedje des etapes otomatikes"
+
+#~ msgid ""
+#~ "Please choose for each step whether it will replay like your install, or "
+#~ "it will be manual"
+#~ msgstr ""
+#~ "S' i vs plait, tchoezixhoz po tchaeke etape s' i l' fåt rifé come vos "
+#~ "l' avoz fwait po voste astalaedje, ou s' i l' fåt fé manuwelmint"
+
+#~ msgid "Insert a blank floppy in drive %s"
+#~ msgstr "Metoz ene blanke plakete divins li lijheu %s"
+
+#~ msgid "Creating auto install floppy"
+#~ msgstr "Dji fé li plakete d' enondaedje otomatike"
+
+#~ msgid "Insert another blank floppy in drive %s (for drivers disk)"
+#~ msgstr "Metoz ene ôte blanke plakete divins l' lijheu %s (po les mineus)"
+
+#~ msgid "Creating auto install floppy (drivers disk)"
+#~ msgstr "Dji fé li plakete d' enondaedje otomatike (avou les mineus)"
+
+#~ msgid ""
+#~ "\n"
+#~ "Welcome.\n"
+#~ "\n"
+#~ "The parameters of the auto-install are available in the sections on the "
+#~ "left"
+#~ msgstr ""
+#~ "\n"
+#~ "Bénvnowe.\n"
+#~ "\n"
+#~ "Les parametes di l' astalaedje otomatike sont ezès seccions sol hintche"
+
+#~ msgid ""
+#~ "The floppy has been successfully generated.\n"
+#~ "You may now replay your installation."
+#~ msgstr ""
+#~ "Li plakete a stî fwaite comifåt.\n"
+#~ "Vos ploz asteure rifé èn astalaedje avou."
+
+#~ msgid "Auto Install"
+#~ msgstr "Astalaedje otomatike"
+
+#~ msgid "Add an item"
+#~ msgstr "Radjouter on cayet"
+
+#~ msgid "Remove the last item"
+#~ msgstr "Oister li dierin cayet"
+
#~ msgid "HardDrake"
#~ msgstr "HardDrake"
='#n1186'>1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022
package bootloader; # $Id$

use diagnostics;
use strict;

#-######################################################################################
#- misc imports
#-######################################################################################
use common;
use fs::type;
use fs::get;
use fs::loopback;
use fs::proc_partitions;
use log;
use any;
use devices;
use detect_devices;
use partition_table::raw;
use run_program;
use modules;

#-#####################################################################################
#- Functions
#-#####################################################################################
my $vmlinuz_regexp = 'vmlinuz|win4lin';
my $decompose_vmlinuz_name = qr/((?:$vmlinuz_regexp).*?)-(\d+\.\d+.*)/;

sub expand_vmlinuz_symlink {
    my ($vmlinuz) = @_;
    my $f = $::prefix . ($vmlinuz =~ m!^/! ? $vmlinuz : "/boot/$vmlinuz");
    -l $f ? readlink($f) : $vmlinuz;
}

sub installed_vmlinuz_raw() { grep { /^($vmlinuz_regexp)/ } all("$::prefix/boot") }
sub installed_vmlinuz() { grep { ! -l "$::prefix/boot/$_" } installed_vmlinuz_raw() }
sub vmlinuz2version {
    my ($vmlinuz) = @_;
    expand_vmlinuz_symlink($vmlinuz) =~ /$decompose_vmlinuz_name/ && $2;
}
sub vmlinuz2kernel_str {
    my ($vmlinuz) = @_;
    my ($basename, $version) = expand_vmlinuz_symlink($vmlinuz) =~ /$decompose_vmlinuz_name/ or return;
    { 
	basename => $basename,
	version => $version, 
	$version =~ /(.*)-(\D.*)-(\d+(mdk|mdv|mnb))$/ ? #- eg: 2.6.22.5-server-1mdv
	  (ext => $2, version_no_ext => "$1-$3") :
	$version =~ /(.*md[kv])-?(.*)/ ? #- (old) eg: 2.6.17-13mdventerprise
	  (ext => $2, version_no_ext => $1) : (version_no_ext => $version),
    };
}

sub kernel_str2short_name {
    my ($kernel) = @_;
    $kernel->{basename};
}

sub basename2initrd_basename {
    my ($basename) = @_;
    $basename =~ s!vmlinuz-?!!; #- here we do not use $vmlinuz_regexp since we explictly want to keep all that is not "vmlinuz"
    'initrd' . ($basename ? "-$basename" : '');    
}
sub kernel_str2vmlinuz_long {
    my ($kernel) = @_;
    $kernel->{basename} . '-' . $kernel->{version};
}
sub kernel_str2initrd_long {
    my ($kernel) = @_;
    basename2initrd_basename(kernel_str2short_name($kernel)) . '-' . $kernel->{version} . '.img';
}
sub kernel_str2vmlinuz_short {
    my ($kernel) = @_;
    if ($kernel->{use_long_name}) {
	kernel_str2vmlinuz_long($kernel);
    } else {
	kernel_str2short_name($kernel);
    }
}
sub kernel_str2initrd_short {
    my ($kernel) = @_;
    if ($kernel->{use_long_name}) {
	kernel_str2initrd_long($kernel);
    } else {
	basename2initrd_basename(kernel_str2short_name($kernel)) . '.img';
    }
}

sub kernel_str2label {
    my ($kernel, $o_use_long_name) = @_;
    if ($o_use_long_name || $kernel->{use_long_name}) {
	_sanitize_ver($kernel);
    } else {
	my $short_name = kernel_str2short_name($kernel);
	$kernel->{ext} =~ /^xen/ ? 'xen' : ($short_name eq 'vmlinuz' ? 'linux' : $short_name);
    }
}

sub get {
    my ($vmlinuz, $bootloader) = @_;
    $_->{kernel_or_dev} && $_->{kernel_or_dev} eq $vmlinuz and return $_ foreach @{$bootloader->{entries}};
    undef;
}
sub get_label {
    my ($label, $bootloader) = @_;
    $_->{label} && lc(make_label_lilo_compatible($_->{label})) eq lc(make_label_lilo_compatible($label)) and return $_ foreach @{$bootloader->{entries}};
    undef;
}

sub mkinitrd {
    my ($kernel_version, $bootloader, $entry, $initrd) = @_;

    $::testing || -e "$::prefix/$initrd" and return $initrd;

    # for /boot on dos partitions when installing on loopback file on dos partition
    my $loop_boot = fs::loopback::prepare_boot();

    modules::load('loop');
    my @options = (
		   if_($::isInstall, "-v"), "-f", $initrd, "--ifneeded", $kernel_version, 
		   if_($entry->{initrd_options}, split(' ', $entry->{initrd_options})),
		  );
    if (!run_program::rooted($::prefix, 'mkinitrd', @options)) {
	unlink("$::prefix/$initrd");
	die "mkinitrd failed:\n(mkinitrd @options)";
    }
    add_boot_splash($initrd, $entry->{vga} || $bootloader->{vga});

    fs::loopback::save_boot($loop_boot);

    -e "$::prefix/$initrd" && $initrd;
}

sub rebuild_initrd {
    my ($kernel_version, $bootloader, $entry, $initrd) = @_;

    my $old = $::prefix . $entry->{initrd} . '.old';
    unlink $old;
    rename "$::prefix$initrd", $old;
    if (!mkinitrd($kernel_version, $bootloader, $entry, $initrd)) {
	log::l("rebuilding initrd failed, putting back the old one");
	rename $old, "$::prefix$initrd";
    }
}

sub remove_boot_splash {
    my ($initrd) = @_;
    run_program::rooted($::prefix, '/usr/share/bootsplash/scripts/remove-boot-splash', $initrd);
}
sub add_boot_splash {
    my ($initrd, $vga) = @_;

    $vga or return;

    eval { require Xconfig::resolution_and_depth } or return;
    if (my $res = Xconfig::resolution_and_depth::from_bios($vga)) {
	run_program::rooted($::prefix, '/usr/share/bootsplash/scripts/make-boot-splash', $initrd, $res->{X});
    } else {
	log::l("unknown vga bios mode $vga");
    }
}
sub update_splash {
    my ($bootloader) = @_;

    foreach (@{$bootloader->{entries}}) {
	add_boot_splash($_->{initrd}, $_->{vga} || $bootloader->{vga}) if $_->{initrd};
    }
}

sub read {
    my ($all_hds) = @_;
    my $fstab = [ fs::get::fstab($all_hds) ];
    foreach my $main_method (main_method_choices()) {
	my $f = $bootloader::{"read_$main_method"} or die "unknown bootloader method $main_method (read)";
	my $bootloader = $f->($fstab);

	cleanup_entries($bootloader);

	# handle raid-extra-boot (lilo)
	my @devs = $bootloader->{boot};
	if ($bootloader->{'raid-extra-boot'} =~ /mbr/ && 
	    (my $md = fs::get::device2part($bootloader->{boot}, $all_hds->{raids}))) {
	    @devs = map { $_->{rootDevice} } @{$md->{disks}};
	} elsif ($bootloader->{'raid-extra-boot'} =~ m!/dev/!) {
	    @devs = split(',', $bootloader->{'raid-extra-boot'});
	}

	my ($type) = map {
	    if (m!/fd\d+$!) {
		warn "not checking the method on floppy, assuming $main_method is right\n";
		$main_method;
	    } elsif (member($main_method, qw(yaboot cromwell silo))) {
		#- not checking, there's only one bootloader anyway :)
		$main_method;
	    } elsif (my $type = partition_table::raw::typeOfMBR($_)) {
		warn "typeOfMBR $type on $_ for method $main_method\n" if $ENV{DEBUG};
		$type;
	    } else { () }
	} @devs;

	if ($type eq $main_method) {
	    my @prefered_entries = map { get_label($_, $bootloader) } $bootloader->{default}, 'linux';

	    if (my $default = find { $_ && $_->{type} eq 'image' } (@prefered_entries, @{$bootloader->{entries}})) {
		$bootloader->{default_options} = $default;
		$bootloader->{perImageAppend} ||= $default->{append};
		log::l("perImageAppend is now $bootloader->{perImageAppend}");
	    } else {
		$bootloader->{default_options} = {};
	    }
	    return $bootloader;
	}
    }
}

sub read_grub {
    my ($fstab) = @_;

    my $grub2dev = read_grub_device_map();
    my $boot_root = read_grub_install_sh();
    _may_fix_grub2dev($fstab, $grub2dev, $boot_root->{boot_part});

    my $bootloader = read_grub_menu_lst($fstab, $grub2dev) or return;

    if ($boot_root->{boot}) {
	$bootloader->{boot} = grub2dev($boot_root->{boot}, $grub2dev);
    }

    $bootloader;
}

# adapts device.map (aka $grub2dev) when for example hda is now sda
# nb: 
# - $boot_part comes from /boot/grub/install.sh "root (hd...)" line
# - $grub2dev is /boot/grub/device.map
sub _may_fix_grub2dev {
    my ($fstab, $grub2dev, $boot_part) = @_;

    $boot_part or log::l("install.sh does not contain 'root (hd...)' line, no way to magically adapt device.map"), return;

    my $real_boot_part = fs::get::root_($fstab, 'boot') or
      log::l("argh... the fstab given is useless, it doesn't contain '/'"), return;
    
    my $real_boot_dev = $real_boot_part->{rootDevice} or return; # if /boot is on Linux RAID 1, hope things are all right...

    if (my $prev_boot_part = fs::get::device2part(grub2dev($boot_part, $grub2dev), $fstab)) { # the boot_device as far as grub config files say
	$real_boot_part == $prev_boot_part and return;
    }

    log::l("WARNING: we have detected that device.map is inconsistent with the system");

    my ($hd_grub, undef, undef) = parse_grub_file($boot_part); # extract hdX 
    if (my $prev_hd_grub = find { $grub2dev->{$_} eq $real_boot_dev } keys %$grub2dev) {
	$grub2dev->{$prev_hd_grub} = $grub2dev->{$hd_grub};
	log::l("swapping result: $hd_grub/$real_boot_dev and $prev_hd_grub/$grub2dev->{$hd_grub}");
    } else {
	log::l("argh... can't swap, setting $hd_grub to $real_boot_dev anyway");
    }
    $grub2dev->{$hd_grub} = $real_boot_dev;
}

sub read_grub_install_sh() {
    my $s = cat_("$::prefix/boot/grub/install.sh");
    my %h;

    #- matches either:
    #-   setup (hd0)
    #-   install (hd0,0)/boot/grub/stage1 d (hd0) (hd0,0)/boot/grub/stage2 p (hd0,0)/boot/grub/menu.lst
    if ($s =~ /^(?:setup.*|install\s.*\sd)\s+(\(.*?\))/m) {
	$h{boot} = $1;
    }    
    if ($s =~ /^root\s+(\(.*?\))/m) {
	$h{boot_part} = $1;
    }
    \%h;
}

sub _parse_grub_menu_lst() {
    my $global = 1;
    my ($e, %b);

    my $menu_lst_file = "$::prefix/boot/grub/menu.lst";
    -e $menu_lst_file or return;

    foreach (MDK::Common::File::cat_utf8($menu_lst_file)) {
	my $verbatim = $_;
        chomp;
	s/^\s*//; s/\s*$//;
        next if /^#/ || /^$/;
	my ($keyword, $v) = split('[ \t=]+', $_, 2) or
	  warn qq(unknown line in /boot/grub/menu.lst: "$_"\n), next;

	if ($keyword eq 'root') {
	    #- rename to avoid name conflict
	    $keyword = 'grub_root';
	}

        if ($keyword eq 'title') {
            push @{$b{entries}}, $e = { label => $v };
            $global = 0;
        } elsif ($global) {
            $b{$keyword} = $v;
        } else {
            if ($keyword eq 'kernel') {
                $e->{type} = 'image';
		$e->{kernel} = $v;
            } elsif ($keyword eq 'chainloader') {
                $e->{type} = 'other';
                $e->{append} = "";
            } elsif ($keyword eq 'configfile') {
                $e->{type} = 'grub_configfile';
                $e->{configfile} = $v;
            } elsif ($keyword eq 'map') {
		$e->{mapdrive}{$2} = $1 if $v =~ m/\((.*)\) \((.*)\)/;
            } elsif ($keyword eq 'module') {
		push @{$e->{modules}}, $v;
	    } else {
		$e->{$keyword} = $v eq '' ? 1 : $v;
	    }
        }
	$e and $e->{verbatim} .= $verbatim;
    }

    %b;
}

sub read_grub_menu_lst {
    my ($fstab, $grub2dev) = @_;

    my %b = _parse_grub_menu_lst();

    foreach my $keyword (grep { $_ ne 'entries' } keys %b) {
	$b{$keyword} = $b{$keyword} eq '' ? 1 : grub2file($b{$keyword}, $grub2dev, $fstab, \%b);
    }

    #- sanitize
    foreach my $e (@{$b{entries}}) {
	if (member($e->{type}, 'other', 'grub_configfile')) {
	    eval { $e->{kernel_or_dev} = grub2dev($e->{rootnoverify} || $e->{grub_root}, $grub2dev) };
	    $e->{keep_verbatim} = 1 unless $e->{kernel_or_dev}; 
	} elsif ($e->{initrd}) {
 	    my $initrd;
 	    eval { $initrd = grub2file($e->{initrd}, $grub2dev, $fstab, $e)};
 	    if ($initrd) {
 		$e->{initrd} = $initrd;
 	    } else {
 		$e->{keep_verbatim} = 1;
 	    }
	}

	if ($e->{kernel} =~ /xen/ && @{$e->{modules} || []} == 2 && $e->{modules}[1] =~ /initrd/) {
	    (my $xen, $e->{xen_append}) = split(' ', $e->{kernel}, 2);
	    ($e->{kernel}, my $initrd) = @{delete $e->{modules}};
	    $e->{xen} = grub2file($xen, $grub2dev, $fstab, $e);
	    $e->{initrd} = grub2file($initrd, $grub2dev, $fstab, $e);
	}
	if (my $v = delete $e->{kernel}) {
	    (my $kernel, $e->{append}) = split(' ', $v, 2);
	    $e->{append} = join(' ', grep { !/^BOOT_IMAGE=/ } split(' ', $e->{append}));
	    $e->{root} = $1 if $e->{append} =~ s/root=(\S*)\s*//;
	    eval { $e->{kernel_or_dev} = grub2file($kernel, $grub2dev, $fstab, $e) };
	    $e->{keep_verbatim} = 1 unless $e->{kernel_or_dev} && dirname($e->{kernel_or_dev}) eq '/boot';
	}
	my ($vga, $other) = partition { /^vga=/ } split(' ', $e->{append});
	if (@$vga) {
	    $e->{vga} = $vga->[0] =~ /vga=(.*)/ && $1;
	    $e->{append} = join(' ', @$other);
	}
    }

    $b{nowarn} = 1;
    # handle broken installkernel -r:
    if (@{$b{entries}}) {
	$b{default} = min($b{default}, scalar(@{$b{entries}}) - 1);
	$b{default} = $b{entries}[$b{default}]{label};
    }
    $b{method} = $b{gfxmenu} ? 'grub-graphic' :  'grub-menu';

    \%b;
}

sub yaboot2dev {
    my ($of_path) = @_;
    find { dev2yaboot($_) eq $of_path } map { "/dev/$_->{dev}" } fs::proc_partitions::read_raw();
}

# assumes file is in /boot
# to do: use yaboot2dev for files as well
#- example of of_path: /pci@f4000000/ata-6@d/disk@0:3,/initrd-2.6.8.1-8mdk.img
sub yaboot2file {
    my ($of_path) = @_;
    
    if ($of_path =~ /,/) {
	"$::prefix/boot/" . basename($of_path);
    } else {
	yaboot2dev($of_path);
    }
}

sub read_silo() {
    my $bootloader = read_lilo_like("/boot/silo.conf", sub {
					my ($f) = @_;
					"/boot$f";
				    });
    $bootloader->{method} = 'silo';
    $bootloader;
}
sub read_cromwell() {
    my %b;
    $b{method} = 'cromwell';
    \%b;
}
sub read_yaboot() { 
    my $bootloader = read_lilo_like("/etc/yaboot.conf", \&yaboot2file);
    $bootloader->{method} = 'yaboot';
    $bootloader;
}
sub read_lilo() {
    my $bootloader = read_lilo_like("/etc/lilo.conf", sub { $_[0] });

    delete $bootloader->{timeout} unless $bootloader->{prompt};
    $bootloader->{timeout} = $bootloader->{timeout} / 10 if $bootloader->{timeout};

    my $submethod = member($bootloader->{install}, 'text', 'menu') ? $bootloader->{install} : 'menu';
    $bootloader->{method} = "lilo-$submethod";
    
    $bootloader;
}
sub read_lilo_like {
    my ($file, $filter_file) = @_;

    my $global = 1;
    my ($e);
    my %b;
    -e "$::prefix$file" or return;
    foreach my $line (cat_("$::prefix$file")) {
	next if $line =~ /^\s*#/ || $line =~ /^\s*$/;
	my ($cmd, $v) = $line =~ /^\s*([^=\s]+)\s*(?:=\s*(.*?))?\s*$/ or log::l("unknown line in $file: $line"), next;

	if ($cmd =~ /^(?:image|other|macos|macosx|bsd|darwin)$/) {
	    $v = $filter_file->($v);
	    push @{$b{entries}}, $e = { type => $cmd, kernel_or_dev => $v };
	    $global = 0;
	} elsif ($global) {
	    if ($cmd eq 'disk' && $v =~ /(\S+)\s+bios\s*=\s*(\S+)/) {
		$b{bios}{$1} = $2;
	    } elsif ($cmd eq 'bios') {
		$b{bios}{$b{disk}} = $v;
	    } elsif ($cmd eq 'init-message') {
		$v =~ s/\\n//g; 
		$v =~ s/"//g;
		$b{'init-message'} = $v;
	    } else {
		$b{$cmd} = $v eq '' ? 1 : $v;
	    }
	} else {
	    if (($cmd eq 'map-drive' .. $cmd eq 'to') && $cmd eq 'to') {
		$e->{mapdrive}{$e->{'map-drive'}} = $v;
	    } else {
		if ($cmd eq 'initrd') {
		    $v = $filter_file->($v);
		}
		$e->{$cmd} = $v || 1;
	    }
	}
    }

    sub remove_quotes_and_spaces {
	local ($_) = @_;
	s/^\s*//; s/\s*$//;
	s/^"(.*?)"$/$1/;
	s/\\"/"/g;
	s/^\s*//; s/\s*$//; #- do it again for append=" foo"
	$_;
    }

    foreach ('append', 'root', 'default', 'raid-extra-boot') {
	$b{$_} = remove_quotes_and_spaces($b{$_}) if $b{$_};
    }
    foreach my $entry (@{$b{entries}}) {
	foreach ('append', 'root', 'label') {
	    $entry->{$_} = remove_quotes_and_spaces($entry->{$_}) if $entry->{$_};
	}
	if ($entry->{kernel_or_dev} =~ /\bmbootpack\b/) {
	    $entry->{initrd} = $entry->{kernel_or_dev};
	    $entry->{initrd} =~ s/\bmbootpack/initrd/;
	    $entry->{kernel_or_dev} =~ s/\bmbootpack/vmlinuz/;