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