[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#868559: live-boot: httpfs does not work due to util-linux's mount being used



Package: live-boot
Version: 1:20170623
Severity: normal

Hi,

when building a stretch live image which includes httpfs/buster for the created
live-image's initramfs to support live-boot's httpfs switch, the boot process
fails in a way similar to what has been reported in #823856.

Special handling for ${FUSE_MOUNT}s (httpfs, curlftps) was added to use
util-linux's mount instead of the klibc's in such cases. I tested the use of a
FUSE-based rootfs in conjunction with klibc's mount, and it seems, nowadays the
both of them work together.

So, the conditional incorporation and replacement of the mount command is both
no longer necessary, and has become harmful. The attached patch against
live-boot's current tag 1%20170623 removes it.


Cheers

Daniel
>From 3891e35f1df321e44e51347df95938346c108ef4 Mon Sep 17 00:00:00 2001
From: Daniel Reichelt <debian@nachtgeist.net>
Date: Sun, 16 Jul 2017 17:15:46 +0200
Subject: [PATCH] use klibc's mount again for ${FUSE_MOUNT}s

---
 backend/initramfs-tools/live.hook | 4 ----
 components/9990-mount-http.sh     | 6 ------
 2 files changed, 10 deletions(-)

diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook
index 1ce922d..c5d7266 100755
--- a/backend/initramfs-tools/live.hook
+++ b/backend/initramfs-tools/live.hook
@@ -149,10 +149,6 @@ then
 	copy_exec /usr/bin/eject /bin
 fi
 
-# Program: mount
-# fuse does not work with klibc mount
-copy_exec /bin/mount /bin/mount.util-linux
-
 [ "${QUIET}" ] || echo -n " utils"
 
 # Feature: Verify Checksums
diff --git a/components/9990-mount-http.sh b/components/9990-mount-http.sh
index 2e68fe6..f58c3a3 100755
--- a/components/9990-mount-http.sh
+++ b/components/9990-mount-http.sh
@@ -54,12 +54,6 @@ do_httpmount ()
 							FUSE_MOUNT="httpfs"
 						fi
 
-						if [ -n "${FUSE_MOUNT}" ] && [ -x /bin/mount.util-linux ]
-						then
-							# fuse does not work with klibc mount
-							ln -f /bin/mount.util-linux /bin/mount
-						fi
-
 						modprobe fuse
 						$FUSE_MOUNT "${url}" "${dest}"
 						ROOT_PID="$(minips h -C "$FUSE_MOUNT" | { read x y ; echo "$x" ; } )"
-- 
2.1.4


Reply to: