dracut-lib: add find_mount, use it to implement ismounted
authorWill Woods <wwoods@redhat.com>
Fri, 27 Jul 2012 17:12:29 +0000 (13:12 -0400)
committerHarald Hoyer <harald@redhat.com>
Mon, 30 Jul 2012 10:23:32 +0000 (12:23 +0200)
commita5f01bbfb5374bd6c136a3d34bad021bf20b27ab
treec7eda469f5f744f19f1b787cf3fe704b31fe4fa7
parent7e2285a48ac3d86a06a2d94d6c46fcf7011c7dfd
dracut-lib: add find_mount, use it to implement ismounted

find_mount is really the same thing as ismounted with two additions:

  1) uses "readlink" so "ismounted /dev/disk/by-label/LABEL" works
  2) returns the mountpoint of the device

And ismounted is now just "find_mount $dev >/dev/null".
modules.d/99base/dracut-lib.sh