diff options
authorLuke Shumaker <>2018-05-23 19:30:41 -0400
committerLuke Shumaker <>2018-05-23 19:30:41 -0400
commita5b324d9c2bb05b86f25466b2e2b1d35e29682f9 (patch)
parentbf13e65d3965fdbfe23afc7a911997bb6bb67245 (diff)
drain: Don't try to extract file flags
bsdtar's --fflags is implied by -p, but this doesn't work on btrfs. I should look in to also adding --no-acls and --no-xattrs, which I believe would bring it in to accord with libalpm. The only way to set certain libarchive flags in bsdtar is to say -p, and then turn off the ones you don't want; it makes it hard to reason about setting the flags the same as libalpm does. Anyway, this gets it working on btrfs.
1 files changed, 1 insertions, 1 deletions
diff --git a/drain b/drain
index 8f97d2d..2c5346c 100755
--- a/drain
+++ b/drain
@@ -66,7 +66,7 @@ commit() (
read file dirs_str <<<"$filespec"
read -a dirs <<<"$dirs_str"
printf " -> %s\n" "$file"
- bsdtar xpvf "$file" "${dirs[@]#/}"
+ bsdtar -xpvf "$file" --no-fflags "${dirs[@]#/}"
ln -srT ../etc.git etc/.git