diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-04 17:25:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-04 17:25:51 +0000 |
commit | 2bc3368461b8b61bb98cc57c225fd9c60fef2c4c (patch) | |
tree | 68a81d1a65bf49da42a2326446d982a5faea7ae7 | |
parent | 369349c6aba61faf98aee168e7981a4d5dce2d4b (diff) | |
download | drakx-2bc3368461b8b61bb98cc57c225fd9c60fef2c4c.tar drakx-2bc3368461b8b61bb98cc57c225fd9c60fef2c4c.tar.gz drakx-2bc3368461b8b61bb98cc57c225fd9c60fef2c4c.tar.bz2 drakx-2bc3368461b8b61bb98cc57c225fd9c60fef2c4c.tar.xz drakx-2bc3368461b8b61bb98cc57c225fd9c60fef2c4c.zip |
ensure /tmp/syslog in stage2 contains the full log
(currently stage2 init was writing in a file shadowed by stage2 copying the /stage1/tmp/syslog over its file)
-rw-r--r-- | mdk-stage1/stage1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 57477d198..424046b6a 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -569,6 +569,10 @@ void finish_preparing(void) stg1_fatal_message("Fatal error finishing initialization."); #endif + /* /tmp/syslog is used by the second init, so it must be copied now, not in stage2 */ + /* we remove it to ensure the old one is not copied over it in stage2 */ + copy_file("/tmp/syslog", SLASH_LOCATION "/tmp/syslog", NULL); + unlink("/tmp/syslog"); copy_file("/etc/resolv.conf", SLASH_LOCATION "/etc/resolv.conf", NULL); mkdir(SLASH_LOCATION "/modules", 0755); copy_file("/modules/modules.dep", SLASH_LOCATION "/modules/modules.dep", NULL); |