commit: 03b4d75447212ea5bd529d0757c42ee7b2de4169
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 26 00:22:11 2019 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb 26 00:22:11 2019 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=03b4d754
Fix 'legacy' mountpoint detection
Was broken due to missing $()
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
defaults/linuxrc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 7c9fac8..0776423 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -666,7 +666,7 @@ do
if [ "${ROOTFSTYPE}" = 'zfs' ]
then
- if [ "zfs get -H -o value mountpoint ${REAL_ROOT}" =
'legacy' ]
+ if [ "$(zfs get -H -o value mountpoint "${REAL_ROOT}")"
= 'legacy' ]
then
MOUNT_STATE=rw
else