Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
Date: Thu, 28 Feb 2019 06:40:33
Message-Id: 1551140531.03b4d75447212ea5bd529d0757c42ee7b2de4169.robbat2@gentoo
1 commit: 03b4d75447212ea5bd529d0757c42ee7b2de4169
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 26 00:22:11 2019 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 26 00:22:11 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=03b4d754
7
8 Fix 'legacy' mountpoint detection
9
10 Was broken due to missing $()
11
12 Signed-off-by: Georgy Yakovlev <gyakovlev <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 7c9fac8..0776423 100644
19 --- a/defaults/linuxrc
20 +++ b/defaults/linuxrc
21 @@ -666,7 +666,7 @@ do
22
23 if [ "${ROOTFSTYPE}" = 'zfs' ]
24 then
25 - if [ "zfs get -H -o value mountpoint ${REAL_ROOT}" = 'legacy' ]
26 + if [ "$(zfs get -H -o value mountpoint "${REAL_ROOT}")" = 'legacy' ]
27 then
28 MOUNT_STATE=rw
29 else