From: Antonio Ospite Date: Fri, 15 Apr 2011 19:39:42 +0000 (+0200) Subject: Handle the case when links like /dev/root are returned X-Git-Tag: v0.1~6 X-Git-Url: https://git.ao2.it/kboot-utils.git/commitdiff_plain/82e03e18d51d85c28aa17754ae3869e7a267e954?ds=sidebyside;hp=a59c14b051419610776cd7c9a35831c8864739ac Handle the case when links like /dev/root are returned Signed-off-by: Antonio Ospite --- diff --git a/kboot-mkconfig_lib b/kboot-mkconfig_lib index 3507696..3cac70c 100644 --- a/kboot-mkconfig_lib +++ b/kboot-mkconfig_lib @@ -21,7 +21,7 @@ exec_prefix=${prefix} bindir=${exec_prefix}/bin libdir=${exec_prefix}/lib -LINUX_ROOT_DEVICE="$(mount | grep ' / ' | cut -d ' ' -f 1)" +LINUX_ROOT_DEVICE="$(readlink -f $(mount | grep ' / ' | cut -d ' ' -f 1))" if $(which gettext >/dev/null 2>/dev/null) ; then gettext="gettext"