feat: Disable CoW check on ZFS (#612)

This commit is contained in:
Kroese
2024-01-31 03:54:40 +01:00
committed by GitHub
parent 3c31bc91e4
commit 78594098cc
4 changed files with 4 additions and 9 deletions

View File

@@ -265,7 +265,7 @@ if ! touch "$SYSTEM"; then
error "Could not create file $SYSTEM for the system disk." && exit 98
fi
if [[ "${FS,,}" == "xfs" || "${FS,,}" == "zfs" || "${FS,,}" == "btrfs" || "${FS,,}" == "bcachefs" ]]; then
if [[ "${FS,,}" == "xfs" || "${FS,,}" == "btrfs" || "${FS,,}" == "bcachefs" ]]; then
{ chattr +C "$SYSTEM"; } || :
FA=$(lsattr "$SYSTEM")
if [[ "$FA" != *"C"* ]]; then