Skip to content

Commit

Permalink
chore: remove inst_fsck_help
Browse files Browse the repository at this point in the history
  • Loading branch information
jozzsi authored and LaszloGombos committed Nov 2, 2024
1 parent 4ef4025 commit 67820a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions dracut-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions modules.d/98dracut-systemd/dracut-emergency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 67820a4

Please sign in to comment.