projects
/
kboot-utils.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle the case when links like /dev/root are returned
[kboot-utils.git]
/
kboot-mkconfig_lib
diff --git
a/kboot-mkconfig_lib
b/kboot-mkconfig_lib
index
3507696
..
3cac70c
100644
(file)
--- a/
kboot-mkconfig_lib
+++ b/
kboot-mkconfig_lib
@@
-21,7
+21,7
@@
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib
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"
if $(which gettext >/dev/null 2>/dev/null) ; then
gettext="gettext"