diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-03 13:54:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-03 13:54:27 +0000 |
commit | 18a2fbda564ed7fd184d648a68250e6050995b3f (patch) | |
tree | dfe51275f24d8b6341a4550857e35c07fdec56dd /mdk-stage1/stage1.c | |
parent | fa2fe939a1d0dc387cf068ee83d701202f5c1ea4 (diff) | |
download | drakx-backup-do-not-use-18a2fbda564ed7fd184d648a68250e6050995b3f.tar drakx-backup-do-not-use-18a2fbda564ed7fd184d648a68250e6050995b3f.tar.gz drakx-backup-do-not-use-18a2fbda564ed7fd184d648a68250e6050995b3f.tar.bz2 drakx-backup-do-not-use-18a2fbda564ed7fd184d648a68250e6050995b3f.tar.xz drakx-backup-do-not-use-18a2fbda564ed7fd184d648a68250e6050995b3f.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)
Diffstat (limited to 'mdk-stage1/stage1.c')
-rw-r--r-- | mdk-stage1/stage1.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index eb832db38..836b13d2d 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -560,7 +560,11 @@ 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); |