replace realpath with readlink -f to avoid dependency on realpath
authorMichael Prokop <mika@grml.org>
Sat, 26 Nov 2011 11:25:01 +0000 (12:25 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 26 Nov 2011 11:25:03 +0000 (12:25 +0100)
Thanks to Christian for reporting.

grml-live

index d04f6f5..168f6fe 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -151,7 +151,7 @@ umount_all() {
 
    # certain FAI versions sadly leave a ramdisk behind, so better safe than sorry
    if [ -x /usr/lib/fai/mkramdisk ] ; then
-     /usr/lib/fai/mkramdisk -u "$(realpath ${CHROOT_OUTPUT}/var/lib/dpkg)" >/dev/null 2>&1 || /bin/true
+     /usr/lib/fai/mkramdisk -u "$(readlink -f ${CHROOT_OUTPUT}/var/lib/dpkg)" >/dev/null 2>&1 || /bin/true
    fi
 
    umount "${CHROOT_OUTPUT}/grml-live/sources/" 2>/dev/null || /bin/true