summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/modules.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-18 09:58:16 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-18 09:58:16 +0000
commit04e6b93752bbf279193dce8251ad2ecca24fa7a6 (patch)
tree1dbfd1c967e572d659310e3724f6a19274809cc4 /mdk-stage1/modules.c
parent5c8be581c94702bfeb3423e546dcec2750988c59 (diff)
downloaddrakx-04e6b93752bbf279193dce8251ad2ecca24fa7a6.tar
drakx-04e6b93752bbf279193dce8251ad2ecca24fa7a6.tar.gz
drakx-04e6b93752bbf279193dce8251ad2ecca24fa7a6.tar.bz2
drakx-04e6b93752bbf279193dce8251ad2ecca24fa7a6.tar.xz
drakx-04e6b93752bbf279193dce8251ad2ecca24fa7a6.zip
support automatic installs even when needing the additional drivers floppy
Diffstat (limited to 'mdk-stage1/modules.c')
-rw-r--r--mdk-stage1/modules.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 9df49aa46..efabb6e06 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -94,6 +94,7 @@ static enum return_type ensure_additional_modules_available(void)
char floppy_mount_location[] = "/tmp/floppy";
char floppy_modules_mar[] = "/tmp/floppy/modules.mar";
int ret;
+ int automatic = 0;
if (stat("/tmp/tmpfs", &statbuf)) {
if (scall(mkdir("/tmp/tmpfs", 0755), "mkdir"))
@@ -101,7 +102,12 @@ static enum return_type ensure_additional_modules_available(void)
if (scall(mount("none", "/tmp/tmpfs", "tmpfs", MS_MGC_VAL, NULL), "mount tmpfs"))
return RETURN_ERROR;
}
-
+
+ if (IS_AUTOMATIC) {
+ unset_param(MODE_AUTOMATIC);
+ automatic = 1;
+ }
+
retry:
stg1_info_message("Please insert the Additional Drivers floppy.");;
@@ -113,6 +119,8 @@ static enum return_type ensure_additional_modules_available(void)
: "Can't find a linux ext2 floppy in first floppy drive.\nRetry?");
if (results != RETURN_OK) {
allow_additional_modules_floppy = 0;
+ if (automatic)
+ set_param(MODE_AUTOMATIC);
return results;
}
}
@@ -127,6 +135,8 @@ static enum return_type ensure_additional_modules_available(void)
ret = copy_file(floppy_modules_mar, additional_archive_name, update_progression);
end_progression();
umount(floppy_mount_location);
+ if (automatic)
+ set_param(MODE_AUTOMATIC);
return ret;
} else
return RETURN_OK;
@@ -172,7 +182,7 @@ static enum insmod_return insmod_archived_file(const char * mod_name, char * opt
i = mar_extract_file(archive_name, module_name, "/tmp/");
if (i == 1) {
static int recurse = 0;
- if (allow_additional_modules_floppy && allow_modules_floppy && !recurse && !IS_AUTOMATIC) {
+ if (allow_additional_modules_floppy && allow_modules_floppy && !recurse) {
recurse = 1;
if (ensure_additional_modules_available() == RETURN_OK)
i = mar_extract_file(additional_archive_name, module_name, "/tmp/");
gid "Where do you want to install the bootloader?"
msgstr "Waar wenst u de opstartlader te installeren?"
-#: any.pm:369
+#: any.pm:368
#, c-format
msgid "First sector (MBR) of drive %s"
msgstr "Eerste sector (MBR) van schijf %s"
-#: any.pm:371
+#: any.pm:370
#, c-format
msgid "First sector of drive (MBR)"
msgstr "Eerste sector van schijf (MBR)"
-#: any.pm:373
+#: any.pm:372
#, c-format
msgid "First sector of the root partition"
msgstr "Eerste sector van root-partitie"
-#: any.pm:375
+#: any.pm:374
#, c-format
msgid "On Floppy"
msgstr "Op diskette"
-#: any.pm:377 pkgs.pm:281 ugtk2.pm:526
+#: any.pm:376 pkgs.pm:281 ugtk2.pm:526
#, c-format
msgid "Skip"
msgstr "Overslaan"
-#: any.pm:412
+#: any.pm:411
#, c-format
msgid "Boot Style Configuration"
msgstr "Configuratie van opstartstijl"
-#: any.pm:428 any.pm:461 any.pm:462
+#: any.pm:427 any.pm:460 any.pm:461
#, c-format
msgid "Bootloader main options"
msgstr "Opstartlader algemene opties"
-#: any.pm:432
+#: any.pm:431
#, c-format
msgid "Bootloader"
msgstr "Opstartlader"
-#: any.pm:433 any.pm:465
+#: any.pm:432 any.pm:464
#, c-format
msgid "Bootloader to use"
msgstr "Welke opstartlader te gebruiken"
-#: any.pm:436 any.pm:468
+#: any.pm:435 any.pm:467
#, c-format
msgid "Boot device"
msgstr "Opstartapparaat"
-#: any.pm:439
+#: any.pm:438
#, c-format
msgid "Main options"
msgstr "Hoofdopties"
-#: any.pm:440
+#: any.pm:439
#, c-format
msgid "Delay before booting default image"
msgstr "Wachttijd voor het opstarten van standaard image"
-#: any.pm:441
+#: any.pm:440
#, c-format
msgid "Enable ACPI"
msgstr "ACPI inschakelen"
-#: any.pm:442
+#: any.pm:441
#, c-format
msgid "Enable SMP"
msgstr "SMP inschakelen"
-#: any.pm:443
+#: any.pm:442
#, c-format
msgid "Enable APIC"
msgstr "APIC inschakelen"
-#: any.pm:445
+#: any.pm:444
#, c-format
msgid "Enable Local APIC"
msgstr "Lokale APIC inschakelen"
-#: any.pm:446 security/level.pm:63
+#: any.pm:445 security/level.pm:63
#, c-format
msgid "Security"
msgstr "Beveiliging"
-#: any.pm:447 any.pm:907 any.pm:926 authentication.pm:249
+#: any.pm:446 any.pm:906 any.pm:925 authentication.pm:249
#: diskdrake/smbnfs_gtk.pm:181
#, c-format
msgid "Password"
msgstr "Wachtwoord"
-#: any.pm:450 authentication.pm:260
+#: any.pm:449 authentication.pm:260
#, c-format
msgid "The passwords do not match"
msgstr "De wachtwoorden komen niet overeen"
-#: any.pm:450 authentication.pm:260 diskdrake/interactive.pm:1499
+#: any.pm:449 authentication.pm:260 diskdrake/interactive.pm:1499
#, c-format
msgid "Please try again"
msgstr "Probeert u het opnieuw"
-#: any.pm:452
+#: any.pm:451
#, c-format
msgid "You cannot use a password with %s"
msgstr "U kunt geen wachtwoord gebruiken met %s"
-#: any.pm:456 any.pm:910 any.pm:928 authentication.pm:250
+#: any.pm:455 any.pm:909 any.pm:927 authentication.pm:250
#, c-format
msgid "Password (again)"
msgstr "Wachtwoord (nogmaals)"
-#: any.pm:457
+#: any.pm:456
#, c-format
msgid "Clean /tmp at each boot"
msgstr "Elke keer bij opstarten /tmp legen"
-#: any.pm:467
+#: any.pm:466
#, c-format
msgid "Init Message"
msgstr "Initialisatie-bericht"
-#: any.pm:469
+#: any.pm:468
#, c-format
msgid "Open Firmware Delay"
msgstr "Open Firmware-vertraging"
-#: any.pm:470
+#: any.pm:469
#, c-format
msgid "Kernel Boot Timeout"
msgstr "Kernel opstart-wachttijd"
-#: any.pm:471
+#: any.pm:470
#, c-format
msgid "Enable CD Boot?"
msgstr "CD-opstart inschakelen?"
-#: any.pm:472
+#: any.pm:471
#, c-format
msgid "Enable OF Boot?"
msgstr "OF-opstart inschakelen?"
-#: any.pm:473
+#: any.pm:472
#, c-format
msgid "Default OS?"
msgstr "Standaard besturingssysteem?"
-#: any.pm:547
+#: any.pm:546
#, c-format
msgid "Image"
msgstr "Beeldbestand"
-#: any.pm:548 any.pm:562
+#: any.pm:547 any.pm:561
#, c-format
msgid "Root"
msgstr "Root"
-#: any.pm:549 any.pm:575
+#: any.pm:548 any.pm:574
#, c-format
msgid "Append"
msgstr "Toevoegen"
-#: any.pm:551
+#: any.pm:550
#, c-format
msgid "Xen append"
msgstr "Xen toevoegen"
-#: any.pm:553
+#: any.pm:552
#, c-format
msgid "Requires password to boot"
msgstr "Vereist een wachtwoord om op te starten"
-#: any.pm:555
+#: any.pm:554
#, c-format
msgid "Video mode"
msgstr "Video-modus"
-#: any.pm:557
+#: any.pm:556
#, c-format
msgid "Initrd"
msgstr "Initrd"
-#: any.pm:558
+#: any.pm:557
#, c-format
msgid "Network profile"
msgstr "Netwerkprofiel"
-#: any.pm:567 any.pm:572 any.pm:574 diskdrake/interactive.pm:411
+#: any.pm:566 any.pm:571 any.pm:573 diskdrake/interactive.pm:411
#, c-format
msgid "Label"
msgstr "Naam"
-#: any.pm:569 any.pm:577 harddrake/v4l.pm:438
+#: any.pm:568 any.pm:576 harddrake/v4l.pm:438
#, c-format
msgid "Default"
msgstr "Standaard"
-#: any.pm:576
+#: any.pm:575
#, c-format
msgid "NoVideo"
msgstr "Geen video"
-#: any.pm:587
+#: any.pm:586
#, c-format
msgid "Empty label not allowed"
msgstr "Lege naam is niet toegelaten"
-#: any.pm:588
+#: any.pm:587
#, c-format
msgid "You must specify a kernel image"
msgstr "U dient een kernel-bestand aan te geven"
-#: any.pm:588
+#: any.pm:587
#, c-format
msgid "You must specify a root partition"
msgstr "U dient een root-partitie aan te geven"
-#: any.pm:589
+#: any.pm:588
#, c-format
msgid "This label is already used"
msgstr "Dit label is al in gebruik"
-#: any.pm:607
+#: any.pm:606
#, c-format
msgid "Which type of entry do you want to add?"
msgstr "Welk type waarde wil u toevoegen?"
-#: any.pm:608
+#: any.pm:607
#, c-format
msgid "Linux"
msgstr "Linux"
-#: any.pm:608
+#: any.pm:607
#, c-format
msgid "Other OS (SunOS...)"
msgstr "Ander OS (SunOS...)"
-#: any.pm:609
+#: any.pm:608
#, c-format
msgid "Other OS (MacOS...)"
msgstr "Ander OS (MacOS...)"
-#: any.pm:609
+#: any.pm:608
#, c-format
msgid "Other OS (Windows...)"
msgstr "Ander OS (Windows...)"
-#: any.pm:656
+#: any.pm:655
#, c-format
msgid "Bootloader Configuration"
msgstr "Configuratie van opstartlader"
-#: any.pm:657
+#: any.pm:656
#, c-format
msgid ""
"Here are the entries on your boot menu so far.\n"
@@ -368,47 +368,47 @@ msgstr ""
"Hier zijn de waardes voor uw opstartmenu tot dusver.\n"
"U kunt er enkele toevoegen of de bestaande wijzigen."
-#: any.pm:868
+#: any.pm:867
#, c-format
msgid "access to X programs"
msgstr "toegang tot X-programma's"
-#: any.pm:869
+#: any.pm:868
#, c-format
msgid "access to rpm tools"
msgstr "toegang tot rpm-programmatuur"
-#: any.pm:870
+#: any.pm:869
#, c-format
msgid "allow \"su\""
msgstr "\"su\" toestaan"
-#: any.pm:871
+#: any.pm:870
#, c-format
msgid "access to administrative files"
msgstr "toegang tot administratieve bestanden"
-#: any.pm:872
+#: any.pm:871
#, c-format
msgid "access to network tools"
msgstr "toegang tot netwerkprogrammatuur"
-#: any.pm:873
+#: any.pm:872
#, c-format
msgid "access to compilation tools"
msgstr "toegang tot compileerprogrammatuur"
-#: any.pm:879
+#: any.pm:878
#, c-format
msgid "(already added %s)"
msgstr "(%s reeds toegevoegd)"
-#: any.pm:885
+#: any.pm:884
#, c-format
msgid "Please give a user name"
msgstr "Geef een gebruikersnaam"
-#: any.pm:886
+#: any.pm:885
#, c-format
msgid ""
"The user name must start with a lower case letter followed by only lower "
@@ -417,147 +417,147 @@ msgstr ""
"De gebruikersnaam moet beginnen met een kleine letter en mag slechts gevolgd "
"worden door kleine letters, cijfers, `-' en `_'"
-#: any.pm:887
+#: any.pm:886
#, c-format
msgid "The user name is too long"
msgstr "Deze gebruikersnaam is te lang"
-#: any.pm:888
+#: any.pm:887
#, c-format
msgid "This user name has already been added"
msgstr "Deze gebruikersnaam is al toegevoegd"
-#: any.pm:894 any.pm:930
+#: any.pm:893 any.pm:929
#, c-format
msgid "User ID"
msgstr "Gebruikers-ID"
-#: any.pm:894 any.pm:931
+#: any.pm:893 any.pm:930
#, c-format
msgid "Group ID"
msgstr "Groep-ID"
-#: any.pm:895
+#: any.pm:894
#, c-format
msgid "%s must be a number"
msgstr "%s moet een getal zijn"
-#: any.pm:896
+#: any.pm:895
#, c-format
msgid "%s should be above 500. Accept anyway?"
msgstr "%s behoort groter dan 500 te zijn. Toch doorgaan?"
-#: any.pm:900
+#: any.pm:899
#, c-format
msgid "User management"
msgstr "Gebruikersbeheer"
-#: any.pm:905
+#: any.pm:904
#, c-format
msgid "Enable guest account"
msgstr "Activeer het 'gast'-account"
-#: any.pm:906 authentication.pm:236
+#: any.pm:905 authentication.pm:236
#, c-format
msgid "Set administrator (root) password"
msgstr "Beheerderswachtwoord (root) instellen"
-#: any.pm:912
+#: any.pm:911
#, c-format
msgid "Enter a user"
msgstr "Voer een gebruiker in"
-#: any.pm:914
+#: any.pm:913
#, c-format
msgid "Icon"
msgstr "Pictogram"
-#: any.pm:917
+#: any.pm:916
#, c-format
msgid "Real name"
msgstr "Volledige naam"
-#: any.pm:924
+#: any.pm:923
#, c-format
msgid "Login name"
msgstr "Aanmeldnaam"
-#: any.pm:929
+#: any.pm:928
#, c-format
msgid "Shell"
msgstr "Shell"
-#: any.pm:972
+#: any.pm:971
#, c-format
msgid "Please wait, adding media..."
msgstr "Even geduld, bezig met toevoegen van media..."
-#: any.pm:1004 security/l10n.pm:14
+#: any.pm:1003 security/l10n.pm:14
#, c-format
msgid "Autologin"
msgstr "Auto-aanmelden"
-#: any.pm:1005
+#: any.pm:1004
#, c-format
msgid "I can set up your computer to automatically log on one user."
msgstr "Automatische aanmelding van één gebruiker is instelbaar."
-#: any.pm:1006
+#: any.pm:1005
#, c-format
msgid "Use this feature"
msgstr "Deze mogelijkheid gebruiken"
-#: any.pm:1007
+#: any.pm:1006
#, c-format
msgid "Choose the default user:"
msgstr "Kies de standaard gebruiker:"
-#: any.pm:1008
+#: any.pm:1007
#, c-format
msgid "Choose the window manager to run:"
msgstr "Kies de te gebruiken werkomgeving:"
-#: any.pm:1019 any.pm:1039 any.pm:1107
+#: any.pm:1018 any.pm:1038 any.pm:1106
#, c-format
msgid "Release Notes"
msgstr "Uitgave-opmerkingen"
-#: any.pm:1046 any.pm:1395 interactive/gtk.pm:817
+#: any.pm:1045 any.pm:1394 interactive/gtk.pm:817
#, c-format
msgid "Close"
msgstr "Sluiten"
-#: any.pm:1093
+#: any.pm:1092
#, c-format
msgid "License agreement"
msgstr "Licentie-overeenkomst"
-#: any.pm:1095 diskdrake/dav.pm:26
+#: any.pm:1094 diskdrake/dav.pm:26
#, c-format
msgid "Quit"
msgstr "Afsluiten"
-#: any.pm:1102
+#: any.pm:1101
#, c-format
msgid "Do you accept this license ?"
msgstr "Accepteert u deze licentie?"
-#: any.pm:1103
+#: any.pm:1102
#, c-format
msgid "Accept"
msgstr "Accepteren"
-#: any.pm:1103
+#: any.pm:1102
#, c-format
msgid "Refuse"
msgstr "Weigeren"
-#: any.pm:1129 any.pm:1191
+#: any.pm:1128 any.pm:1190
#, c-format
msgid "Please choose a language to use"
msgstr "Kies de taal die u wenst te gebruiken"
-#: any.pm:1157
+#: any.pm:1156
#, c-format
msgid ""
"%s can support multiple languages. Select\n"
@@ -568,82 +568,82 @@ msgstr ""
"die u wenst te installeren. Ze zullen beschikbaar zijn wanneer\n"
"de installatie afgerond is en u uw computer opnieuw start."
-#: any.pm:1159 fs/partitioning_wizard.pm:174
+#: any.pm:1158 fs/partitioning_wizard.pm:174
#, c-format
msgid "Mageia"
msgstr "Mageia"
-#: any.pm:1160
+#: any.pm:1159
#, c-format
msgid "Multiple languages"
msgstr "Meerdere talen"
-#: any.pm:1169 any.pm:1200
+#: any.pm:1168 any.pm:1199
#, c-format
msgid "Old compatibility (non UTF-8) encoding"
msgstr "Oude compatibiliteit (niet-UTF-8)-codering"
-#: any.pm:1170
+#: any.pm:1169
#, c-format
msgid "All languages"
msgstr "Alle talen"
-#: any.pm:1192
+#: any.pm:1191
#, c-format
msgid "Language choice"
msgstr "Taalkeuze"
-#: any.pm:1246
+#: any.pm:1245
#, c-format
msgid "Country / Region"
msgstr "Land"
-#: any.pm:1247
+#: any.pm:1246
#, c-format
msgid "Please choose your country"
msgstr "Kies uw land alstublieft"
-#: any.pm:1249
+#: any.pm:1248
#, c-format
msgid "Here is the full list of available countries"
msgstr "Dit is de volledige lijst van beschikbare landen"
-#: any.pm:1250
+#: any.pm:1249
#, c-format
msgid "Other Countries"
msgstr "Overige landen"
-#: any.pm:1250 interactive.pm:488 interactive/gtk.pm:445
+#: any.pm:1249 interactive.pm:488 interactive/gtk.pm:445
#, c-format
msgid "Advanced"
msgstr "Geavanceerd"
-#: any.pm:1256
+#: any.pm:1255
#, c-format
msgid "Input method:"
msgstr "Invoermethode:"
-#: any.pm:1259
+#: any.pm:1258
#, c-format
msgid "None"
msgstr "Geen"
-#: any.pm:1340
+#: any.pm:1339
#, c-format
msgid "No sharing"
msgstr "Niet delen"
-#: any.pm:1340
+#: any.pm:1339
#, c-format
msgid "Allow all users"
msgstr "Alle gebruikers toestaan"
-#: any.pm:1340
+#: any.pm:1339
#, c-format
msgid "Custom"
msgstr "Aangepast"
-#: any.pm:1344
+#: any.pm:1343
#, c-format
msgid ""
"Would you like to allow users to share some of their directories?\n"
@@ -658,7 +658,7 @@ msgstr ""
"\n"
"\"Aangepast\": per-gebruiker instellingen toestaan.\n"
-#: any.pm:1356
+#: any.pm:1355
#, c-format
msgid ""
"NFS: the traditional Unix file sharing system, with less support on Mac and "
@@ -667,7 +667,7 @@ msgstr ""
"NFS: het traditionele Unix bestandsdelingssysteem, met minder ondersteuning "
"op Mac en Windows."
-#: any.pm:1359
+#: any.pm:1358
#, c-format
msgid ""
"SMB: a file sharing system used by Windows, Mac OS X and many modern Linux "
@@ -676,7 +676,7 @@ msgstr ""
"SMB: een bestandsdelingssysteem dat Windows, Mac OS X en vele moderne Linux "
"systemen gebruiken."
-#: any.pm:1367
+#: any.pm:1366
#, c-format
msgid ""
"You can export using NFS or SMB. Please select which you would like to use."
@@ -684,12 +684,12 @@ msgstr ""
"U kunt bestandssystemen delen met behulp van NFS of SMB. Welke daarvan wilt "
"u gebruiken?"
-#: any.pm:1395
+#: any.pm:1394
#, c-format
msgid "Launch userdrake"
msgstr "Userdrake opstarten"
-#: any.pm:1397
+#: any.pm:1396
#, c-format
msgid ""
"The per-user sharing uses the group \"fileshare\". \n"
@@ -699,7 +699,7 @@ msgstr ""
"\"fileshare\". U kunt met userdrake een gebruiker\n"
"aan deze groep toevoegen."
-#: any.pm:1504
+#: any.pm:1503
#, c-format
msgid ""
"You need to logout and back in again for changes to take effect. Press OK to "
@@ -708,49 +708,49 @@ msgstr ""
"U dient zich af te melden en weer aan te melden voordat de veranderingen "
"effect hebben. Druk op OK om uzelf nu af te melden."
-#: any.pm:1508
+#: any.pm:1507
#, c-format
msgid "You need to log out and back in again for changes to take effect"
msgstr ""
"U dient zich af te melden en weer aan te melden voordat de veranderingen "
"effect hebben"
-#: any.pm:1543
+#: any.pm:1542
#, c-format
msgid "Timezone"
msgstr "Tijdzone"
-#: any.pm:1543
+#: any.pm:1542
#, c-format
msgid "Which is your timezone?"
msgstr "Wat is uw tijdzone?"
-#: any.pm:1566 any.pm:1568
+#: any.pm:1565 any.pm:1567
#, c-format
msgid "Date, Clock & Time Zone Settings"
msgstr "Datum-, klok- & tijdzone-instellingen"
-#: any.pm:1569
+#: any.pm:1568
#, c-format
msgid "What is the best time?"
msgstr "Welke tijdzone komt het best overeen?"
-#: any.pm:1573
+#: any.pm:1572
#, c-format
msgid "%s (hardware clock set to UTC)"
msgstr "%s (apparaatklok ingesteld op UTC)"
-#: any.pm:1574
+#: any.pm:1573
#, c-format
msgid "%s (hardware clock set to local time)"
msgstr "%s (apparaatklok ingesteld op lokale tijd)"
-#: any.pm:1576
+#: any.pm:1575
#, c-format
msgid "NTP Server"
msgstr "NTP-server"
-#: any.pm:1577
+#: any.pm:1576
#, c-format
msgid "Automatic time synchronization (using NTP)"
msgstr "Automatische tijdssynchronisatie (met gebruik van NTP)"
@@ -1092,7 +1092,7 @@ msgid "Domain Admin Password"
msgstr "Wachtwoord domeinbeheerder"
#. -PO: these messages will be displayed at boot time in the BIOS, use only ASCII (7bit)
-#: bootloader.pm:978
+#: bootloader.pm:991
#, c-format
msgid ""
"Welcome to the operating system chooser!\n"
@@ -1107,42 +1107,42 @@ msgstr ""
"of wacht even op de standaard-opstartprocedure.\n"
"\n"