]> git.hungrycats.org Git - linux/commit
[PATCH] Fix initrd with devfs enabled
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Mon, 20 Oct 2003 14:34:10 +0000 (07:34 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 20 Oct 2003 14:34:10 +0000 (07:34 -0700)
commit2393fb2f99df0fd3e1d1452787674f93c758aba5
tree6b9754fc05e11bc97bacaacd01209c7cf291f950
parentd2c46c6c2cd9a23fb34021119d751adcd116566d
[PATCH] Fix initrd with devfs enabled

This fixes initrd with devfs.  With that combination the late-boot code
does temporary mount of devfs over rootfs /dev, which made /dev/initrd
inaccessible.  For setups without devfs that didn't happen.

The fix is trivial - put the file in question outside of /dev; IOW,
we simply replace "/dev/initrd" with "/initrd.image" in init/*.

Confirmed to fix the problem by Valdis Kletnieks
init/do_mounts_initrd.c
init/do_mounts_rd.c
init/initramfs.c