Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib/dracut/modules.d/99fs-lib//module-setup.sh
#!/bin/bash
# called by dracut
check() {
return 0
}
# called by dracut
depends() {
return 0
}
echo_fs_helper() {
local dev=$1 fs=$2
case "$fs" in
xfs)
echo -n " xfs_db xfs_repair xfs_check xfs_metadump "
;;
ext?)
echo -n " e2fsck "
;;
jfs)
echo -n " jfs_fsck "
;;
reiserfs)
echo -n " reiserfsck "
;;
btrfs)
echo -n " btrfsck "
;;
esac
echo -n " fsck.$fs "
return 0
}
include_fs_helper_modules() {
local dev=$1 fs=$2
case "$fs" in
xfs|btrfs|ext4)
instmods crc32c
;;
f2fs)
instmods crc32
;;
esac
}
# called by dracut
installkernel() {
# xfs/btrfs/ext4 need crc32c, f2fs needs crc32
if [[ $hostonly ]]; then
for_each_host_dev_fs include_fs_helper_modules
:
else
instmods crc32c crc32
fi
}
# called by dracut
install() {
local _helpers
inst "$moddir/fs-lib.sh" "/lib/fs-lib.sh"
> ${initdir}/etc/fstab.empty
[[ "$nofscks" = "yes" ]] && return
if [[ "$fscks" = "${fscks#*[^ ]*}" ]]; then
_helpers="\
umount mount /sbin/fsck*
xfs_db xfs_check xfs_repair xfs_metadump
e2fsck jfs_fsck reiserfsck btrfsck
"
if [[ $hostonly ]]; then
_helpers="umount mount "
_helpers+=$(for_each_host_dev_fs echo_fs_helper)
fi
else
_helpers="$fscks"
fi
if [[ "$_helpers" == *e2fsck* ]] && [ -e /etc/e2fsck.conf ]; then
inst_simple /etc/e2fsck.conf
fi
inst_multiple -o $_helpers fsck
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | April 06 2024 13:22:13 | root / root | 0755 | |
| | | | | |
fs-lib.sh | 6.231 KB | April 06 2024 13:22:05 | root / root | 0755 | |
module-setup.sh | 1.682 KB | October 08 2018 13:38:33 | root / root | 0755 | |