Skip to content

Commit 6a79c64

Browse files
95-refind-copy-icon.install: account for different libdir on 32bit
Closes: https://bugs.gentoo.org/953976 Signed-off-by: Nowa Ammerlaan <[email protected]>
1 parent aad29bd commit 6a79c64

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

hooks/95-refind-copy-icon.install

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
ver=${1}
1111
img=${2}
1212

13-
: "${REFIND_ICON:=/usr/lib64/refind/refind/icons/os_${ID}.png}"
13+
if [[ $(getconf LONG_BIT) == 64 ]]; then
14+
: "${REFIND_ICON:=/usr/lib64/refind/refind/icons/os_${ID}.png}"
15+
else
16+
: "${REFIND_ICON:=/usr/lib/refind/refind/icons/os_${ID}.png}"
17+
fi
1418

1519
# familiar helpers, we intentionally don't use Gentoo functions.sh
1620
die() {

hooks/systemd/95-refind-copy-icon.install

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ fi
2424
: "${NAME:=Linux}"
2525
: "${ID:=linux}"
2626

27-
: "${REFIND_ICON:=/usr/lib64/refind/refind/icons/os_${ID}.png}"
27+
if [[ $(getconf LONG_BIT) == 64 ]]; then
28+
: "${REFIND_ICON:=/usr/lib64/refind/refind/icons/os_${ID}.png}"
29+
else
30+
: "${REFIND_ICON:=/usr/lib/refind/refind/icons/os_${ID}.png}"
31+
fi
2832

2933
if [[ ! -f ${REFIND_ICON} ]]; then
3034
echo "REFIND_ICON=${REFIND_ICON} not found"

0 commit comments

Comments
 (0)