s390utils/s390utils-2.44.0-pvics-return.patch
Dan Horák e7ac6489b2 - rebased to 2.44.0 (RHEL-174896)
- KVM: Quantum Safe SE Header and tooling support (RHEL-149688)
- Introduce NVMe SMART data monitoring to the zpcimon service (RHEL-191176)
- zkey key support for dm-integrity with HMAC (RHEL-50021)
- fix zipl support for mixed type mdadm RAID1 devices (RHEL-191425)
- Resolves: RHEL-174896 RHEL-149688 RHEL-191176 RHEL-50021 RHEL-191425
2026-08-05 12:00:43 +02:00

31 lines
861 B
Diff

diff --git a/scripts/pvics b/scripts/pvics
index 18cdbb6b..8fe21a3b 100755
--- a/scripts/pvics
+++ b/scripts/pvics
@@ -1474,12 +1474,6 @@ main() {
local -
set -Eu
- # call cleanup on error
- # PIPE is needed to allow out=$(main list -i <image> | grep -m 1 <filter>)
- # bash will close the subshell executing the main function as soon as grep has found a match
- # cleanup will not be executed anymore
- trap 'cleanup 1' ERR EXIT PIPE
-
# general
ACTION=""
NBD=""
@@ -1518,6 +1512,12 @@ main() {
# parse command line
cli "$@"
+ # call cleanup on error
+ # PIPE is needed to allow out=$(main list -i <image> | grep -m 1 <filter>)
+ # bash will close the subshell executing the main function as soon as grep has found a match
+ # cleanup will not be executed anymore
+ trap 'cleanup 1' ERR EXIT PIPE
+
# set up logger
setup_logger