From 0cca9c5f8374a9992d76fa1384a5b9063f86e517 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 9 Feb 2024 23:53:18 +0100 Subject: [PATCH] feat: Disable CoW check on XFS (#629) --- src/disk.sh | 2 +- src/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disk.sh b/src/disk.sh index 6fb084d1..7bf4a9dd 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -80,7 +80,7 @@ getSize() { isCow() { local FS=$1 - if [[ "${FS,,}" == "xfs" || "${FS,,}" == "btrfs" || "${FS,,}" == "bcachefs" ]]; then + if [[ "${FS,,}" == "btrfs" ]]; then return 0 fi diff --git a/src/install.sh b/src/install.sh index 041c1ff1..603c4010 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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,,}" == "btrfs" || "${FS,,}" == "bcachefs" ]]; then +if [[ "${FS,,}" == "btrfs" ]]; then { chattr +C "$SYSTEM"; } || : FA=$(lsattr "$SYSTEM") if [[ "$FA" != *"C"* ]]; then