From e6c2703d0ccec7e90ad2a3ef2c0ee466b8c0843f Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 15 Jan 2023 14:15:28 +0100 Subject: [PATCH] add scanning dialog --- usr/lib/archboot/installer/blockdevices.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index 0134b47ff..8107073a1 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -63,7 +63,7 @@ _blockdevices_partitions() { # - extended partition (LBA) # sfdisk -l 2>/dev/null | grep "${part}" | grep "(LBA)$" #- bios_grub partitions - # "echo ${part} | grep "[a-z]$(parted -s $(${_LSBLK} PKNAME ${part}) print 2>/dev/null | grep bios_grub | cut -d " " -f 2)$" + # sfdisk -l 2>/dev/null | grep "${part}" | grep -q "BIOS boot$" #- iso9660 devices # "${_LSBLK} FSTYPE -s ${part} | grep "iso9660" if ! ${_LSBLK} FSTYPE "${part}" | grep -q "linux_raid_member" && ! ${_LSBLK} FSTYPE "${part}" | grep -q "LVM2_member" && ! ${_LSBLK} FSTYPE "${part}" | grep -q "crypto_LUKS" && ! ${_LSBLK} FSTYPE -s "${part}" | grep -q "iso9660" && ! sfdisk -l 2>/dev/null | grep "${part}" | grep -q "Extended$" && ! sfdisk -l 2>/dev/null | grep "${part}" | grep -q "(LBA)$" && ! sfdisk -l 2>/dev/null | grep "${part}" | grep -q "BIOS boot$"; then @@ -604,6 +604,7 @@ _createpv() while [[ "${_PVFINISH}" != "DONE" ]]; do _activate_special_devices : >/tmp/.pvs-create + _dialog --infobox "Scanning blockdevices ... This may need some time." 3 60 # Remove all lvm devices with children _LVM_BLACKLIST="$(for i in $(${_LSBLK} NAME,TYPE | grep " lvm$" | cut -d' ' -f1 | sort -u); do echo "$(${_LSBLK} NAME "${i}")" _