From e2c8529758a43249065aa380e5985406a319d0b5 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 11 Jun 2001 14:42:55 +0000 Subject: do not set root=/dev/ram3 from my code anymore, expect the bootloader to set the parameter correctly --- mdk-stage1/stage1.c | 11 +---------- mdk-stage1/tools.c | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index cf973f615..432fc7194 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -399,17 +399,8 @@ int main(int argc, char **argv, char **env) if (interactive_pid != 0) kill(interactive_pid, 9); - if (IS_RESCUE) { - int fd = open("/proc/sys/kernel/real-root-dev", O_RDWR); -#if defined(__powerpc__) || defined (__sparc__) - write(fd, "0x1030000", sizeof("0x1030000")); /* ram3 or sparc */ -#else - write(fd, "0x103", sizeof("0x103")); /* ram3 */ -#endif - close(fd); + if (IS_RESCUE) return 66; - } - if (IS_TESTING) return 0; diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c index deafdc8fe..05ec58f92 100644 --- a/mdk-stage1/tools.c +++ b/mdk-stage1/tools.c @@ -243,7 +243,7 @@ static void save_stuff_for_rescue(void) enum return_type load_ramdisk_fd(int ramdisk_fd, int size) { BZFILE * st2; - char * ramdisk = "/dev/ram3"; /* warning, verify that this file exists in the initrd (and actually is a ramdisk device file) */ + char * ramdisk = "/dev/ram3"; /* warning, verify that this file exists in the initrd, and that root=/dev/ram3 is actually passed to the kernel at boot time */ int ram_fd; char buffer[4096]; int z_errnum; -- cgit v1.2.1