Add more feedback messages when working on tasks that may be slow
This commit is contained in:
parent
ab3d1c4e94
commit
7b5e1bc035
@ -760,7 +760,7 @@ part_menu()
|
||||
txt+="A $boot_fs efi boot partition (512M)\n- "
|
||||
fi
|
||||
txt+="An ext4 partition using all remaining space ($root_size)\n\nDo you want to continue?\n"
|
||||
yesno "Auto Partition" "$txt" && msg "Info" "\nGathering device info.\n" 0 && part_auto "$device" "$table" "$boot_fs" "$root_size"
|
||||
yesno "Auto Partition" "$txt" && msg "Info" "\nGathering device info.\n" 1 && part_auto "$device" "$table" "$boot_fs" "$root_size"
|
||||
|
||||
else
|
||||
clear
|
||||
@ -768,7 +768,7 @@ part_menu()
|
||||
$choice "$device"
|
||||
fi
|
||||
if [[ $devhash != "$(lsblk -f | base64)" ]]; then
|
||||
msg "Probing Partitions" "\nInforming the kernel of partition changes using partprobe.\n" 0
|
||||
msg "Probing Partitions" "\nInforming kernel of partition changes using partprobe\n" 0
|
||||
partprobe >/dev/null 2>&1
|
||||
[[ $choice == 'auto' ]] && return
|
||||
fi
|
||||
@ -1977,6 +1977,7 @@ lvm_create()
|
||||
[[ $VOL_COUNT ]] || return 1
|
||||
lvm_extra_lvs || return 1
|
||||
lvm_volume_name "$_lvmlvname\nNOTE: This LV will use up all remaining space in the volume group (${VGROUP_MB}MB)" || return 1
|
||||
msg "$_lvmnew (LV:$VOL_COUNT)" "\nCreating volume $VNAME from remaining space in $VGROUP\n" 0
|
||||
lvcreate -l +100%FREE "$VGROUP" -n "$VNAME" >/dev/null 2>$ERR
|
||||
errshow "lvcreate -l +100%FREE $VGROUP -n $VNAME" || return 1
|
||||
LVM='logical volume'; sleep 0.5
|
||||
@ -1985,7 +1986,7 @@ lvm_create()
|
||||
return 0
|
||||
}
|
||||
|
||||
get_lv_size()
|
||||
lvm_lv_size()
|
||||
{
|
||||
local txt="${VGROUP}: ${SIZE}$SIZE_UNIT (${VGROUP_MB}MB remaining).$_lvmlvsize"
|
||||
|
||||
@ -2089,7 +2090,8 @@ lvm_delgroup()
|
||||
lvm_extra_lvs()
|
||||
{
|
||||
while (( VOL_COUNT > 1 )); do
|
||||
lvm_volume_name "$_lvmlvname" && get_lv_size || return 1
|
||||
lvm_volume_name "$_lvmlvname" && lvm_lv_size || return 1
|
||||
msg "$_lvmnew (LV:$VOL_COUNT)" "\nCreating a $VOLUME_SIZE volume $VNAME in $VGROUP\n" 0
|
||||
lvcreate -L "$VOLUME_SIZE" "$VGROUP" -n "$VNAME" >/dev/null 2>$ERR
|
||||
errshow "lvcreate -L $VOLUME_SIZE $VGROUP -n $VNAME" || return 1
|
||||
msg "$_lvmnew (LV:$VOL_COUNT)" "\nDone, logical volume (LV) $VNAME ($VOLUME_SIZE) has been created.\n"
|
||||
|
Reference in New Issue
Block a user