Skip to content

Commit

Permalink
feat: Disable CoW check on XFS (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Feb 9, 2024
1 parent 13d60b7 commit 0cca9c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ getSize() {
isCow() {
local FS=$1

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

Expand Down
2 changes: 1 addition & 1 deletion src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cca9c5

Please sign in to comment.