diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-05 14:14:53 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2021-01-05 14:25:47 -0500 |
commit | 0bff1bc61f2e988ad7ba9b12af81f614c74fe147 (patch) | |
tree | 9454024e22c5062708ea6ef98d075fb84038459a /nonsystemd/opentmpfiles/chattr-ignore-nocow.patch | |
parent | 042683122e543ca82f39d119298a7ebbccca492e (diff) | |
download | abslibre-0bff1bc61f2e988ad7ba9b12af81f614c74fe147.tar.gz abslibre-0bff1bc61f2e988ad7ba9b12af81f614c74fe147.tar.bz2 abslibre-0bff1bc61f2e988ad7ba9b12af81f614c74fe147.zip |
[opentmpfiles]: upgrade to v0.3.1
Diffstat (limited to 'nonsystemd/opentmpfiles/chattr-ignore-nocow.patch')
-rw-r--r-- | nonsystemd/opentmpfiles/chattr-ignore-nocow.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nonsystemd/opentmpfiles/chattr-ignore-nocow.patch b/nonsystemd/opentmpfiles/chattr-ignore-nocow.patch new file mode 100644 index 000000000..c3aa84d9c --- /dev/null +++ b/nonsystemd/opentmpfiles/chattr-ignore-nocow.patch @@ -0,0 +1,19 @@ +diff a/tmpfiles.sh b/tmpfiles.sh +--- a/tmpfiles.sh ++++ b/tmpfiles.sh +@@ -54,6 +54,15 @@ _chattr() { + '') return ;; + *) attr="+$attr" ;; + esac ++ ++ # ignore attempts to set unsupported attributes ++ local fs_type ++ case $attr in ++ [+-=]C) fs_type="$(df --output=fstype "$3" | tail --lines=1)" ++ test "$fstype" == 'btrfs' || return 0 ++ ;; ++ esac ++ + local IFS= + dryrun_or_real chattr "$1" "$attr" -- "$3" + } |