From 7480ba8d291d2bf64db03a8937193cbc38e2fdd3 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 9 Apr 2022 18:21:27 +0200 Subject: [PATCH] add infobox on pv creation --- usr/lib/archboot/installer/blockdevices.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index e4e83809f..8f30a9f12 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -782,7 +782,12 @@ _createpv() PART="$(echo -n "$(cat /tmp/.pvs-create)")" #shellcheck disable=SC2028,SC2086 _umountall - pvcreate -y ${PART} >"${LOG}" 2>&1 || (DIALOG --msgbox "Error creating physical volume on ${PART} (see "${LOG}" for details)." 0 0; return 1) + if pvcreate -y ${PART} >"${LOG}" 2>&1; then + DIALOG --infobox "Creating physical volume on ${PART} successful.\n\nContinuing in 3 seconds..." 5 50 + sleep 3 + else + DIALOG --msgbox "Error creating physical volume on ${PART} (see "${LOG}" for details)." 0 0; return 1 + fi # run udevadm to get values exported udevadm trigger udevadm settle