root UMSDOS and initrd on 2.0.33

root (root@elbim.ru)
Mon, 25 May 1998 10:34:12 +0400


Hi all,

loadlin vmlinuz root=/dev/sda1 rw works fine but
loadlin vmlinuz initrd=initrd.gz root=/dev/sda1 rw failes with

"Unable to open an initial console."

vmlinuz is 2.0.33, /dev/sda1 is umsdos and initrd.gz is ext2

If i copy /linux/* to /* than everything works fine.
It seems like UMSDOS misses chroot("/linux") when i use it with initrd.
Is that already fixed?

Oleg

PS.
As a temporary workaround I have repeated the section (==manual chroot
("/linux"))

#ifdef CONFIG_UMSDOS_FS
{
extern struct inode *pseudo_root;
if (pseudo_root != NULL){
current->fs->root = pseudo_root;
current->fs->pwd = pseudo_root;
}
}
#endif

in #ifdef CONFIG_BLK_DEV_INITRD section of init/main.c and changed
fs/umsdos/inode.c line
if (s == super_blocks){
to
if (s >= super_blocks && s < super_blocks + NR_SUPER){

it works now but I am looking for better solution.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu