From: juhosg Date: Thu, 8 Oct 2009 18:34:45 +0000 (+0000) Subject: kernel: fix automatic rootfs partition selection on 2.6.31 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=63b0dfc1a158d5d438be409192e79001d9fe677c;p=10.03%2Fopenwrt.git kernel: fix automatic rootfs partition selection on 2.6.31 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18007 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 a642dee2a..50ca25ce6 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