dracut: Override rd.md settings if rd.md.uuid is provided
authorVivek Goyal <vgoyal@redhat.com>
Wed, 5 Sep 2012 21:24:34 +0000 (17:24 -0400)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Sep 2012 08:45:24 +0000 (10:45 +0200)
commitcc4037d12012244b51a1efecdeb121184efe6f67
tree43580737fb37383f11d42d6238ccb8c63d10076a
parenta999414eaf2e136e8bb08065bd53e51f4d544a9b
dracut: Override rd.md settings if rd.md.uuid is provided

Currently anaconda provides rd.md=0 on kernel's command line as a boot
time optimization if root is not on md device. But this leads to kdump
failure. We copy the command line from first kernel and if dump target
is on md device, it fails as we never try to assemble md devices as
rd.md=0.

We have already set rd.md.uuid though in /etc/cmdlind.d/ dir providing
dracut the info about what md devices to assemble. So this patch overrides
rd.md settings if rd.md.uuid is provided.

This is a stop gap measure to get kdump working on software raid
devices. Harald seems to have bigger cleanup plans for rd.md. Once
that happens, this patch will not be needed and things should
automatically be fixed.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
modules.d/90mdraid/parse-md.sh