summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-26 17:44:23 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-26 17:44:23 +0000
commitfc724037d45125fd3277aeda4a3fa900aae461d1 (patch)
tree742c8396b87e7365dc8d1bf9d8d06ac88ed5af8d /mdk-stage1
parent3d29fbb612e292bc90fcd799a1235077ff0b9095 (diff)
downloaddrakx-backup-do-not-use-fc724037d45125fd3277aeda4a3fa900aae461d1.tar
drakx-backup-do-not-use-fc724037d45125fd3277aeda4a3fa900aae461d1.tar.gz
drakx-backup-do-not-use-fc724037d45125fd3277aeda4a3fa900aae461d1.tar.bz2
drakx-backup-do-not-use-fc724037d45125fd3277aeda4a3fa900aae461d1.tar.xz
drakx-backup-do-not-use-fc724037d45125fd3277aeda4a3fa900aae461d1.zip
restore passing of pcmcia info to stage2
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/stage1.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 190fcb6c9..01316fee0 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -174,17 +174,16 @@ static void expert_third_party_modules(void)
}
-static void handle_pcmcia(void)
+static void handle_pcmcia(char ** pcmcia_adapter)
{
#ifdef ENABLE_PCMCIA
- char * pcmcia_adapter;
- pcmcia_adapter = pcmcia_probe();
- if (!pcmcia_adapter) {
+ *pcmcia_adapter = pcmcia_probe();
+ if (!*pcmcia_adapter) {
log_message("no pcmcia adapter found");
return;
}
my_insmod("pcmcia_core", ANY_DRIVER_TYPE, NULL);
- my_insmod(pcmcia_adapter, ANY_DRIVER_TYPE, NULL);
+ my_insmod(*pcmcia_adapter, ANY_DRIVER_TYPE, NULL);
my_insmod("ds", ANY_DRIVER_TYPE, NULL);
/* call to cardmgr takes time, let's use the wait message */
@@ -267,6 +266,7 @@ int main(int argc, char **argv, char **env)
enum return_type ret;
char ** argptr;
char * stage2_args[30];
+ char * pcmcia_adapter = NULL;
if (getpid() > 50)
set_param(MODE_TESTING);
@@ -282,7 +282,7 @@ int main(int argc, char **argv, char **env)
if (IS_EXPERT)
expert_third_party_modules();
- handle_pcmcia();
+ handle_pcmcia(&pcmcia_adapter);
ret = method_select_and_prepare();
@@ -315,6 +315,10 @@ int main(int argc, char **argv, char **env)
*argptr++ = "/usr/bin/runinstall2";
*argptr++ = "--method";
*argptr++ = method_name;
+ if (pcmcia_adapter) {
+ *argptr++ = "--pcmcia";
+ *argptr++ = pcmcia_adapter;
+ }
*argptr++ = NULL;
execve(stage2_args[0], stage2_args, grab_env());