resume: Fix failure when invalid device passed via 'resume='
authorColin Guthrie <colin@mageia.org>
Sat, 31 Dec 2011 13:30:58 +0000 (13:30 +0000)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jan 2012 12:33:13 +0000 (13:33 +0100)
commitf65b874bda9f8b12d41c1f07826f584a8f5dcf6d
tree3082845513c869597f225c2fbc21d661bd561a30
parent5d55ceb75ca5a8d04f0a218aa14b6722af2e52ad
resume: Fix failure when invalid device passed via 'resume='

This commit allows the waiting for a device to be cancelled.
When the resume partition does not exist, it becomes quite hard
to work out what to do (you have to either create the
/dev/resume symlink manually, or remove the 'finished' job
that is waiting for it). Additionally dracut incorrectly
displays a message about not being able to find the root
device, which is bogus and misleading.

This commit should just bail on the whole resume thing
if the device cannot be found and proceed with a normal boot.
modules.d/95resume/resume-genrules.sh
modules.d/99base/dracut-lib.sh