Commit 7bbdddee authored by Kai Germaschewski's avatar Kai Germaschewski

do_mounts: Simplify logic for ramdisk from floppy.

Currently, we would try to read in a ramdisk image from floppy, if
o root device is /dev/fd*
o "load_ramdisk=1" on the command line
o CONFIG_BLK_DEV_INITRD is not set, or "noinitrd" on the command line.

Relax the last restriction, which only makes things more complicated for
no reason, and changes behavior depending on an unrelated config option.
parent 3807a041
......@@ -731,8 +731,10 @@ void __init prepare_namespace(void)
if (mount_initrd) {
if (initrd_load())
goto out;
} else if (is_floppy && rd_doload && rd_load_disk(0))
}
if (is_floppy && rd_doload && rd_load_disk(0))
ROOT_DEV = Root_RAM0;
mount_root();
out:
umount_devfs("/dev");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment