commit:     8c110e13f09aad67a666f4af10e51876fab50925
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 21:03:21 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 28 13:45:37 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8c110e13

defaults/linuxrc: Support devices with symlinks (2)

Follow up for commit 0048f44c081dce2e296b48c71a208abf2a815c84.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/linuxrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defaults/linuxrc b/defaults/linuxrc
index 438ed11..466e1f7 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -925,7 +925,7 @@ do
                else
                        # If $REAL_ROOT is a symlink
                        # Resolve it like util-linux mount does
-                       [ -L ${REAL_ROOT} ] && REAL_ROOT=$(readlink 
${REAL_ROOT})
+                       [ -L ${REAL_ROOT} ] && REAL_ROOT=$(readlink -f 
${REAL_ROOT})
                        # mount ro so fsck doesn't barf later
                        if [ "${REAL_ROOTFLAGS}" = '' ]
                        then

Reply via email to