Blame SOURCES/0528-90dmsquash-live-we-don-t-have-find_binary-inside-ini.patch

1755ca
From 5aadb107913d8c93c787b854fcf3e2b9cd37e0d7 Mon Sep 17 00:00:00 2001
1755ca
From: Lukas Nykryn <lnykryn@redhat.com>
1755ca
Date: Thu, 11 Jan 2018 13:31:43 +0100
1755ca
Subject: [PATCH] 90dmsquash-live: we don't have find_binary inside initramdisk
1755ca
1755ca
Cherry-picked from: c42c387cca3ecbb3ec7cef0ee1b8dd67b64782d1
1755ca
Resolves: #1449410
1755ca
---
1755ca
 modules.d/90dmsquash-live/dmsquash-live-root.sh | 2 +-
1755ca
 1 file changed, 1 insertion(+), 1 deletion(-)
1755ca
1755ca
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
1755ca
index 5fb798c7..6b3c2eb9 100755
1755ca
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
1755ca
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
1755ca
@@ -85,7 +85,7 @@ else
1755ca
         # Symlinking /usr/bin/ntfs-3g as /sbin/mount.ntfs seems to boot
1755ca
         # at the first glance, but ends with lots and lots of squashfs
1755ca
         # errors, because systemd attempts to kill the ntfs-3g process?!
1755ca
-        if [ -x "$(find_binary "ntfs-3g")" ]; then
1755ca
+        if [ -x "/usr/bin/ntfs-3g" ]; then
1755ca
             ( exec -a @ntfs-3g ntfs-3g -o ${liverw:-ro} $livedev /run/initramfs/live ) | vwarn
1755ca
         else
1755ca
             die "Failed to mount block device of live image: Missing NTFS support"