From: Cong Wang <xiyou.wangcong@xxxxxxxxx> Otherwise get_maj_min /dev/mapper/vg_cr0-lv_home will return 0:0. Signed-off-by: Cong Wang <xiyou.wangcong@xxxxxxxxx> --- dracut-functions | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dracut-functions b/dracut-functions index 54b1c30..618e884 100755 --- a/dracut-functions +++ b/dracut-functions @@ -180,7 +180,7 @@ get_fs_uuid() ( get_maj_min() { local _dev - _dev=$(stat -c '$((0x%T)):$((0x%t))' "$1" 2>/dev/null) + _dev=$(stat -L -c '$((0x%T)):$((0x%t))' "$1" 2>/dev/null) _dev=$(eval "echo $_dev") echo $_dev } -- 1.7.7.4 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html