]> git.baikalelectronics.ru Git - kernel.git/commit
block: do_mounts - accept root=<non-existant partition>
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 6 May 2008 20:31:33 +0000 (22:31 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 May 2008 17:37:57 +0000 (10:37 -0700)
commit1d3f1f2791ecfe5a646b5663562d3902d5cfa609
treedeb8d2a749cd737d9abead1b4cc8321d00dbaee4
parenta2b382d672b78eefd2f09e6de5a7b1143563dbe3
block: do_mounts - accept root=<non-existant partition>

Some devices, like md, may create partitions only at first access,
so allow root= to be set to a valid non-existant partition of an
existing disk. This applies only to non-initramfs root mounting.

This fixes a regression from 2.6.24 which did allow this to happen and
broke some users machines :(

Acked-by: Neil Brown <neilb@suse.de>
Tested-by: Joao Luis Meloni Assirati <assirati@nonada.if.usp.br>
Cc: stable <stable@kernel.org>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/genhd.c
include/linux/genhd.h
init/do_mounts.c