1 |
commit: 8c110e13f09aad67a666f4af10e51876fab50925 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 21:03:21 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 13:45:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8c110e13 |
7 |
|
8 |
defaults/linuxrc: Support devices with symlinks (2) |
9 |
|
10 |
Follow up for commit 0048f44c081dce2e296b48c71a208abf2a815c84. |
11 |
|
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
defaults/linuxrc | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/defaults/linuxrc b/defaults/linuxrc |
18 |
index 438ed11..466e1f7 100644 |
19 |
--- a/defaults/linuxrc |
20 |
+++ b/defaults/linuxrc |
21 |
@@ -925,7 +925,7 @@ do |
22 |
else |
23 |
# If $REAL_ROOT is a symlink |
24 |
# Resolve it like util-linux mount does |
25 |
- [ -L ${REAL_ROOT} ] && REAL_ROOT=$(readlink ${REAL_ROOT}) |
26 |
+ [ -L ${REAL_ROOT} ] && REAL_ROOT=$(readlink -f ${REAL_ROOT}) |
27 |
# mount ro so fsck doesn't barf later |
28 |
if [ "${REAL_ROOTFLAGS}" = '' ] |
29 |
then |