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 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'mdk-stage1/stage1.c') 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; -- cgit v1.2.1