Remove sourcing /scripts/functions in components
[live-boot-grml.git] / components / 9990-mount-http.sh
index d0f4900..f58c3a3 100755 (executable)
@@ -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" ; } )"