]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore: remove unused function
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 24 Oct 2024 16:01:31 +0000 (12:01 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 24 Oct 2024 18:40:36 +0000 (14:40 -0400)
dracut-init.sh

index 5e34535a941b306156e8580b0cf837b08105935e..3a42212d074130d4d0390294a0f58aed44d5485c 100755 (executable)
@@ -343,23 +343,6 @@ dracut_instmods() {
     fi
 }
 
-inst_library() {
-    local _ret _hostonly_install
-    if [[ $1 == "-H" ]]; then
-        _hostonly_install="-H"
-        shift
-    fi
-    [[ -e ${initdir}/"${2:-$1}" ]] && return 0 # already there
-    [[ -e $1 ]] || return 1                    # no source
-    if $DRACUT_INSTALL ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} ${_hostonly_install:+-H} "$@"; then
-        return 0
-    else
-        _ret=$?
-        derror FAILED: "$DRACUT_INSTALL" ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} ${_hostonly_install:+-H} "$@"
-        return $_ret
-    fi
-}
-
 inst_binary() {
     local _ret
     if $DRACUT_INSTALL ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} "$@"; then