TEST-25-IMPORT: Skip if importctl not installed

machinectl import-* was split out into importctl
which is a separately configurable component to machinectl
and might not always be available.
This commit is contained in:
Richard Maw 2024-04-24 12:16:37 +01:00
parent 60d064d3fd
commit dcb17e3295

View file

@ -3,6 +3,11 @@
set -eux
set -o pipefail
if ! command -v importctl >/dev/null; then
echo "importctl is not available to be chain-loaded from machinectl, skipping" >>/skipped
exit 77
fi
export SYSTEMD_PAGER=cat
dd if=/dev/urandom of=/var/tmp/testimage.raw bs=$((1024*1024+7)) count=5