From 75e9df0c1b9af178b2911f7c81a142bc2b3392ea Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 30 Oct 2003 16:23:03 +0000 Subject: add debugstage1 option to help debugging when stage1 can't launch stage2 --- mdk-stage1/stage1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mdk-stage1/stage1.c') 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")) -- cgit v1.2.1