Browse Source

fix(fs-lib): install fsck utilities

master
Tomasz Paweł Gajc 4 years ago committed by Harald Hoyer
parent
commit
12beeac741
  1. 17
      modules.d/99fs-lib/module-setup.sh

17
modules.d/99fs-lib/module-setup.sh

@ -67,22 +67,23 @@ install() {
[[ $nofscks == "yes" ]] && return [[ $nofscks == "yes" ]] && return


if [[ $fscks == "${fscks#*[^ ]*}" ]]; then if [[ $fscks == "${fscks#*[^ ]*}" ]]; then
_helpers="\ _helpers=(
umount mount /sbin/fsck* /usr/sbin/fsck* /sbin/fsck* /usr/sbin/fsck*
xfs_db xfs_check xfs_repair xfs_metadump xfs_db xfs_check xfs_repair xfs_metadump
e2fsck jfs_fsck reiserfsck btrfsck e2fsck jfs_fsck reiserfsck btrfsck
" )
if [[ $hostonly ]]; then if [[ $hostonly ]]; then
_helpers="umount mount " read -r -a _helpers < <(for_each_host_dev_fs echo_fs_helper)
_helpers+=$(for_each_host_dev_fs echo_fs_helper)
fi fi
else else
_helpers="$fscks" read -r -a _helpers <<< "$fscks"
fi fi


if [[ $_helpers == *e2fsck* ]] && [[ -e $dracutsysrootdir/etc/e2fsck.conf ]]; then _helpers+=(umount mount)

if [[ ${_helpers[*]} == *e2fsck* ]] && [[ -e $dracutsysrootdir/etc/e2fsck.conf ]]; then
inst_simple /etc/e2fsck.conf inst_simple /etc/e2fsck.conf
fi fi


inst_multiple -o "$_helpers" fsck inst_multiple -o "${_helpers[@]}" fsck
} }

Loading…
Cancel
Save