[PATCH] Fix initrd with netboot From "Martin Persson" we've encountered a problem when trying to netboot 2.4.21 and above. After /linuxrc has been executed and the kernel tries to remount the root, it panics with the all too well known message "Unable to mount root fs on ...". The kernel bugs out in mount_block_root in the file init/do_mounts.c, to be more precise in the for-loop. What happens is that it tries to mount the file system as type ext2 (which happens to be first in the list in our case), but instead of returning -EINVAL it returns -EBUSY, the loop exits instead of trying the next (correct) fs-type and the kernel panics. In -wolk for some time and maybe others. All diffs for ChangeSet 1.1065.1.42 diff -Nru a/init/do_mounts.c b/init/do_mounts.c --- a/init/do_mounts.c Mon Jul 21 13:13:12 2003 +++ b/init/do_mounts.c Thu Jul 10 06:46:36 2003 @@ -360,6 +360,7 @@ flags |= MS_RDONLY; goto retry; case -EINVAL: + case -EBUSY: continue; } /*