summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/stage1.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-30 16:23:03 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-30 16:23:03 +0000
commit75e9df0c1b9af178b2911f7c81a142bc2b3392ea (patch)
treea6a631097dcf5a0be63503e074cc09e12e7dd537 /mdk-stage1/stage1.c
parent631717f6192097f68b0bcc238edac862c3439622 (diff)
downloaddrakx-backup-do-not-use-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar
drakx-backup-do-not-use-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar.gz
drakx-backup-do-not-use-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar.bz2
drakx-backup-do-not-use-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar.xz
drakx-backup-do-not-use-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.zip
add debugstage1 option to help debugging when stage1 can't launch stage2
Diffstat (limited to 'mdk-stage1/stage1.c')
-rw-r--r--mdk-stage1/stage1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index f756bf052..739e3dfaa 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -536,6 +536,9 @@ int mandrake_move_post(void)
return RETURN_ERROR;
}
+ if (IS_DEBUGSTAGE1)
+ while (1);
+
log_message("move: pivot_rooting");
// trick so that kernel won't try to mount the root device when initrd exits
if (scall((fd = open("/proc/sys/kernel/real-root-dev", O_WRONLY)) < 0, "open"))