From: Gabor Juhos Date: Thu, 8 Oct 2009 18:34:45 +0000 (+0000) Subject: kernel: fix automatic rootfs partition selection on 2.6.31 X-Git-Tag: reboot~22205 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=017ede680fabc86ed51a17bc9691f3b436842c8b;p=openwrt%2Fstaging%2Fchunkeey.git kernel: fix automatic rootfs partition selection on 2.6.31 SVN-Revision: 18007 --- diff --git a/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch b/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch index a642dee2ad..50ca25ce67 100644 --- a/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch +++ b/target/linux/generic-2.6/patches-2.6.31/065-rootfs_split.patch @@ -207,7 +207,7 @@ + if (ROOT_DEV == 0) { + printk(KERN_NOTICE "mtd: partition \"rootfs\" " + "set to be root filesystem\n"); -+ ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, i); ++ ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, slave->mtd.index); + } +#endif +#ifdef CONFIG_MTD_ROOTFS_SPLIT