Skip to contentSkip to conversation

[2.5.7] initrd issue

PATCH Alexander Viro 1 participant 1 message Mar 24, 2002 1 message not in the archive VFS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Henrik Storner

I've since changed my setup so I do not need the initrd to boot (moved my root-fs from an LVM volume to a separate partition), but if you need testing let me know.

Grrr... The problem appeared back in 2.5.2-pre6 when kdev_t type had been changed. Offending line is
- if (initrd_load() && ROOT_DEV != MKDEV(RAMDISK_MAJOR, 0)) {
+ if (initrd_load() && kdev_same(ROOT_DEV, mk_kdev(RAMDISK_MAJOR,

and obvious fix is

init/do_mounts.c +1 -1
diff -urN C7-0/init/do_mounts.c C7-current/init/do_mounts.c
@@ -826,7 +826,7 @@
 
 	create_dev("/dev/root", ROOT_DEV, NULL);
 	if (mount_initrd) {
-		if (initrd_load() && kdev_same(ROOT_DEV, mk_kdev(RAMDISK_MAJOR, 0))) {
+		if (initrd_load() && !kdev_same(ROOT_DEV, mk_kdev(RAMDISK_MAJOR, 0))) {
 			handle_initrd();
 			goto out;
 		}