summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-07-01 04:18:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-07-01 04:18:32 +0000
commitc071604907bc848205602cfc863e0e943cfff17d (patch)
tree11df520224edbab642b8ed34ae3382392a5493c0 /mdk-stage1
parent32972f9ae514f69cdd6ee1ad245826cb91f6798c (diff)
downloaddrakx-backup-do-not-use-c071604907bc848205602cfc863e0e943cfff17d.tar
drakx-backup-do-not-use-c071604907bc848205602cfc863e0e943cfff17d.tar.gz
drakx-backup-do-not-use-c071604907bc848205602cfc863e0e943cfff17d.tar.bz2
drakx-backup-do-not-use-c071604907bc848205602cfc863e0e943cfff17d.tar.xz
drakx-backup-do-not-use-c071604907bc848205602cfc863e0e943cfff17d.zip
stage1 used to write files /tmp/network, /tmp/ifcfg-eth0, /etc/modules.conf
but those files are in /stage1 after pivot rooting, so: - write modules.conf in /tmp instead of /etc - cp those files from /stage1/tmp to /tmp before umounting /stage1
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index efd9efdb8..0f6d6de7f 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -308,7 +308,7 @@ void init_modules_insmoding(void)
static void add_modules_conf(char * str)
{
static char data[5000] = "";
- char * target = "/etc/modules.conf";
+ char * target = "/tmp/modules.conf";
int fd;
if (strlen(data) + strlen(str) >= sizeof(data))