diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-10-30 16:23:03 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-10-30 16:23:03 +0000 |
commit | 75e9df0c1b9af178b2911f7c81a142bc2b3392ea (patch) | |
tree | a6a631097dcf5a0be63503e074cc09e12e7dd537 /mdk-stage1/stage1.c | |
parent | 631717f6192097f68b0bcc238edac862c3439622 (diff) | |
download | drakx-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar drakx-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar.gz drakx-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar.bz2 drakx-75e9df0c1b9af178b2911f7c81a142bc2b3392ea.tar.xz drakx-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.c | 3 |
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")) |