fix db creation

This commit is contained in:
Tobias Powalowski 2024-07-25 08:34:31 +02:00
parent 672b10b6fb
commit 586ba7dc44

View file

@ -258,9 +258,9 @@ _create_archboot_db() {
bsdtar -C repro -xf "${i}" || return 1 bsdtar -C repro -xf "${i}" || return 1
fd --base-directory repro . -u --min-depth 1 -X touch -hcd "@0" fd --base-directory repro . -u --min-depth 1 -X touch -hcd "@0"
fd --base-directory repro --strip-cwd-prefix -t f -t l -u --min-depth 1 -0 | sort -z | fd --base-directory repro --strip-cwd-prefix -t f -t l -u --min-depth 1 -0 | sort -z |
LC_ALL=C.UTF-8 bsdtar --null -cnf - -T - | LC_ALL=C.UTF-8 bsdtar -C repro --null -cnf - -T - |
LC_ALL=C.UTF-8 bsdtar --null -cf - --format=gnutar @- | LC_ALL=C.UTF-8 bsdtar -C repro --null -cf - --format=gnutar @- |
zstd -T0 -19 >> "../${i}.zst" || return 1 zstd -T0 -19 >> "${i}.zst" || return 1
rm -r repro rm -r repro
done done
rm archboot.{db,files} rm archboot.{db,files}