]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit30f2f0eb4bd2c43d10a8b0d872c6e5ad8f31c9a0
treedeb8d2a749cd737d9abead1b4cc8321d00dbaee4
parent9604006d283fb67dda5ee9e0e15b7cc6c62e1557
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