Handle the case when links like /dev/root are returned
authorAntonio Ospite <ospite@studenti.unina.it>
Fri, 15 Apr 2011 19:39:42 +0000 (21:39 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Fri, 15 Apr 2011 19:39:42 +0000 (21:39 +0200)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
kboot-mkconfig_lib

index 3507696..3cac70c 100644 (file)
@@ -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"