From: Luca Boccassi Date: Mon, 31 Mar 2025 22:05:04 +0000 (+0100) Subject: test: call nvme-cli with --hostnqn= instead of the deprecated --hostid= X-Git-Tag: v258-rc1~977 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8942f4ae2d121603544b8527a7faf7fc458562c;p=thirdparty%2Fsystemd.git test: call nvme-cli with --hostnqn= instead of the deprecated --hostid= Fixes https://github.com/systemd/systemd/issues/36908 --- diff --git a/test/units/TEST-84-STORAGETM.sh b/test/units/TEST-84-STORAGETM.sh index db281963b26..0ae98a4c320 100755 --- a/test/units/TEST-84-STORAGETM.sh +++ b/test/units/TEST-84-STORAGETM.sh @@ -24,7 +24,7 @@ NVME_UUID="$(cat /proc/sys/kernel/random/uuid)" systemd-run -u teststoragetm.service -p Type=notify -p "Environment=SYSTEMD_NVME_UUID=${NVME_UUID:?}" /usr/lib/systemd/systemd-storagetm /var/tmp/storagetm.test --nqn=quux NVME_DEVICE="/dev/disk/by-id/nvme-uuid.${NVME_UUID:?}" -nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostid="$(cat /proc/sys/kernel/random/uuid)" +nvme connect-all -vv -t tcp -a 127.0.0.1 -s 16858 --hostnqn="$(cat /proc/sys/kernel/random/uuid)" udevadm wait --settle "$NVME_DEVICE" dd if="$NVME_DEVICE" bs=1024 | cmp /var/tmp/storagetm.test -