mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
committed by
Daan De Meyer
parent
b3ebd480d6
commit
9959681a0d
@@ -1325,9 +1325,12 @@ testcase_compression() {
|
||||
|
||||
# TODO: add btrfs once btrfs-progs v6.11 is available in distributions.
|
||||
for format in squashfs erofs; do
|
||||
if ! command -v "mkfs.$format" && ! command -v mksquashfs >/dev/null; then
|
||||
continue
|
||||
fi
|
||||
case "$format" in
|
||||
squashfs)
|
||||
command -v mksquashfs >/dev/null || continue ;;
|
||||
*)
|
||||
command -v "mkfs.$format" || continue ;;
|
||||
esac
|
||||
|
||||
[[ "$format" == "squashfs" ]] && compression=zstd
|
||||
[[ "$format" == "erofs" ]] && compression=lz4hc
|
||||
|
||||
Reference in New Issue
Block a user