]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore: remove inst_fsck_help
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 13 Sep 2024 03:33:32 +0000 (23:33 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 2 Nov 2024 23:21:44 +0000 (19:21 -0400)
dracut-init.sh
modules.d/98dracut-systemd/dracut-emergency.sh

index feedf9e72bddc088aa44d847de8bfe5c1b0fe0cd..502b53105cca1e5d212023094bd25cfdf5256735 100755 (executable)
@@ -365,17 +365,6 @@ inst_script() {
     fi
 }
 
-inst_fsck_help() {
-    local _ret _helper="/run/dracut/fsck/fsck_help_$1.txt"
-    if $DRACUT_INSTALL ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} "$2" "$_helper"; then
-        return 0
-    else
-        _ret=$?
-        derror "$DRACUT_INSTALL" ${dracutsysrootdir:+-r "$dracutsysrootdir"} ${initdir:+-D "$initdir"} ${loginstall:+-L "$loginstall"} ${DRACUT_RESOLVE_DEPS:+-l} ${DRACUT_FIPS_MODE:+-f} "$2" "$_helper"
-        return $_ret
-    fi
-}
-
 # Use with form hostonly="$(optional_hostonly)" inst_xxxx <args>
 # If hostonly mode is set to "strict", hostonly restrictions will still
 # be applied, else will ignore hostonly mode and try to install all
index 415cec8c022fa65cfa95fb8d76aee1244053e24d..7d013ed6275b7f0e6731faed12c036a451419de6 100755 (executable)
@@ -14,7 +14,6 @@ export _rdshell_name="dracut" action="Boot" hook="emergency"
 _emergency_action=$(getarg rd.emergency)
 
 if getargbool 1 rd.shell || getarg rd.break; then
-    FSTXT="/run/dracut/fsck/fsck_help_$fstype.txt"
     RDSOSREPORT="$(rdsosreport)"
     source_hook "$hook"
     while read -r _tty rest; do
@@ -29,7 +28,6 @@ if getargbool 1 rd.shell || getarg rd.break; then
             echo 'after mounting them and attach it to a bug report.'
             echo
             echo
-            [ -f "$FSTXT" ] && cat "$FSTXT"
         ) > /dev/"$_tty"
     done < /proc/consoles
     [ -f /etc/profile ] && . /etc/profile