From a5b324d9c2bb05b86f25466b2e2b1d35e29682f9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 May 2018 19:30:41 -0400 Subject: 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. --- drain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drain') 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[@]#/}" done ln -srT ../etc.git etc/.git -- cgit v1.2.2