summaryrefslogtreecommitdiff
path: root/src/chroot-tools/librechroot
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-xsrc/chroot-tools/librechroot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index fba7e91..7b1c8c2 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -75,10 +75,10 @@ hack_arch_nspawn_flags() {
# We're running an ARM chroot on a non-ARM processor
# Make sure that qemu-static is set up with binfmt_misc
- if [[ $(grep -xF \
- -e 'enabled'\
+ if [[ $(grep -c -xF \
+ -e 'enabled' \
-e 'interpreter /usr/bin/qemu-arm-static' \
- /proc/sys/fs/binfmt_misc/arm 2>/dev/null |wc -l) -lt 2 ]]; then
+ /proc/sys/fs/binfmt_misc/arm 2>/dev/null) -lt 2 ]]; then
error 'Cannot cross-compile for ARM on x86'
plain 'This requires a binfmt_misc entry for qemu-arm-static.'
prose 'Such a binfmt_misc entry is provided by the %s