currently --mount param are retrieved from /proc/mounts, but the device name could be renamed in initramfs. So here convert them to persistent names before passing to dracut lvm canonical dev name is /dev/mapper/lvname-link which will be showed in /proc/mounts here fix get_mp function by using findmnt utils to find the mount point. This patch depends on below dracut patch: http://permalink.gmane.org/gmane.linux.kernel.initramfs/2903 [chaowang]: in case device is not mounted we should not echo the mount line in to_mount() use findmnt -n to strip the header line for nfs don't pass persistent name to dracut [vivek]: improve variable names Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
…
…
Description
Languages
Shell
92.1%
Roff
6.7%
Makefile
1.2%