Use klibc's mount again for fuse mounts
authorDaniel Reichelt <debian@nachtgeist.net>
Sun, 16 Jul 2017 15:15:46 +0000 (17:15 +0200)
committerRaphaël Hertzog <hertzog@debian.org>
Fri, 23 Feb 2018 17:51:58 +0000 (18:51 +0100)
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.

Closes: #868559

backend/initramfs-tools/live.hook
components/9990-mount-http.sh

index 8be2335..0e75e4d 100755 (executable)
@@ -164,10 +164,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
index 2e68fe6..f58c3a3 100755 (executable)
@@ -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" ; } )"