dracut:fstab-sys: Wait for devices specified using --mount option
authorVivek Goyal <vgoyal@redhat.com>
Tue, 15 May 2012 17:36:11 +0000 (13:36 -0400)
committerHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 09:44:21 +0000 (11:44 +0200)
commit8be5a0fa945d130ef8ebb464ebbe1a865949353d
tree3a39b2ba210dfe50f6ecc1ed7377f3c152e5e822
parentbd4be59fb2574b8cbcdf22a86a6cafb7b71db503
dracut:fstab-sys: Wait for devices specified using --mount option

dracut allows passing --mount option which mounts the specified devices.
But it does not wait for these devices to show up and mounting will fail
if devices do not show up by the time "mount" was called.

I am writing some patches to support kdump on iscsi target and I noticed
that one of the initqueue script was not called as we found the root
device and broke out of main loop.

There are two possible enancements to this patch.

- Introduce a time limited wait (rd.timeout something along the lines of
  rd.retry). That will allow kdump to try to dump to a backup target if
  primary targets fails to come up.

- Wait for UUID= and LABEL= to show up too. Right now kdump converts
  UUID= and LABEL= to respective devices and passes /dev/* to dracut
  --mount option. So I am not introducing the wait for UUID= or LABEL=
 in this patch.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
modules.d/95fstab-sys/module-setup.sh
modules.d/95fstab-sys/wait-mount-dev.sh [new file with mode: 0644]