X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-mount-http.sh;h=f58c3a32ac2a7c9f07cff72c27e581fc942b9a05;hb=683095685ccdd4175b75293540aabe239d03a6bb;hp=d0f4900f66a7107329ff577ff9ff49c07b33e4c8;hpb=60e3a0cf5e883ca6323ed8542eaf519e497a6731;p=live-boot-grml.git diff --git a/components/9990-mount-http.sh b/components/9990-mount-http.sh index d0f4900..f58c3a3 100755 --- a/components/9990-mount-http.sh +++ b/components/9990-mount-http.sh @@ -25,6 +25,9 @@ do_httpmount () mount -t ramfs ram "${mountpoint}" mkdir -p "${dest}" fi + case "${url}" in + *:///*) url="${url%%:///*}://${ROOTSERVER}/${url##*:///}" ;; + esac if [ "${webfile}" = "FETCH" ] then case "$url" in @@ -51,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" ; } )"