Unverified Commit 0cca9c5f authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Disable CoW check on XFS (#629)

parent 13d60b7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ getSize() {
isCow() {
  local FS=$1

  if [[ "${FS,,}" == "xfs" || "${FS,,}" == "btrfs" || "${FS,,}" == "bcachefs" ]]; then
  if [[ "${FS,,}" == "btrfs" ]]; then
    return 0
  fi

+1 −1
Original line number Diff line number Diff line
@@ -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