remove f2fs, nilfs and jfs

This commit is contained in:
Tobias Powalowski 2024-02-09 06:55:38 +01:00
parent 488f07befd
commit 7d07ac980e
2 changed files with 1 additions and 17 deletions

View file

@ -101,21 +101,12 @@ _auto_packages() {
if ${_LSBLK} FSTYPE | grep -q btrfs; then
! echo "${_PACKAGES}" | grep -qw btrfs-progs && _PACKAGES="${_PACKAGES} btrfs-progs"
fi
if ${_LSBLK} FSTYPE | grep -q nilfs2; then
! echo "${_PACKAGES}" | grep -qw nilfs-utils && _PACKAGES="${_PACKAGES} nilfs-utils"
fi
if ${_LSBLK} FSTYPE | grep -q ext; then
! echo "${_PACKAGES}" | grep -qw e2fsprogs && _PACKAGES="${_PACKAGES} e2fsprogs"
fi
if ${_LSBLK} FSTYPE | grep -q xfs; then
! echo "${_PACKAGES}" | grep -qw xfsprogs && _PACKAGES="${_PACKAGES} xfsprogs"
fi
if ${_LSBLK} FSTYPE | grep -q jfs; then
! echo "${_PACKAGES}" | grep -qw jfsutils && _PACKAGES="${_PACKAGES} jfsutils"
fi
if ${_LSBLK} FSTYPE | grep -q f2fs; then
! echo "${_PACKAGES}" | grep -qw f2fs-tools && _PACKAGES="${_PACKAGES} f2fs-tools"
fi
if ${_LSBLK} FSTYPE | grep -q vfat; then
! echo "${_PACKAGES}" | grep -qw dosfstools && _PACKAGES="${_PACKAGES} dosfstools"
fi

View file

@ -406,7 +406,7 @@ _mkfs() {
else
# make sure the fstype is one we can handle
local _KNOWNFS=0
for fs in xfs jfs ext2 ext3 ext4 f2fs bcachefs btrfs nilfs2 vfat; do
for fs in xfs ext2 ext4 bcachefs btrfs vfat; do
[[ "${2}" == "${fs}" ]] && _KNOWNFS=1 && break
done
if [[ ${_KNOWNFS} -eq 0 ]]; then
@ -443,13 +443,6 @@ _mkfs() {
mkdir -p "${3}""${5}"
# add ssd optimization before mounting
_ssd_optimization
_F2FS_MOUNTOPTIONS=""
### f2fs mount options, taken from wiki:
# compress_algorithm=zstd:6 tells F2FS to use zstd for compression at level 6, which should give pretty good compression ratio.
# compress_chksum tells the filesystem to verify compressed blocks with a checksum (to avoid corruption)
# atgc,gc_merge Enable better garbage collector, and enable some foreground garbage collections to be asynchronous.
# lazytime Do not synchronously update access or modification times. Improves IO performance and flash durability.
[[ "${2}" == "f2fs" ]] && _F2FS_MOUNTOPTIONS="compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime"
# prepare btrfs mount options
[[ -n "${10}" ]] && _MOUNTOPTIONS="${_MOUNTOPTIONS} subvol=${10}"
[[ -n "${11}" ]] && _MOUNTOPTIONS="${_MOUNTOPTIONS} ${11}"