Skip to content

Commit

Permalink
Change update_parts() to use get_disks() with grub
Browse files Browse the repository at this point in the history
  • Loading branch information
danboid committed Mar 26, 2019
1 parent 461694d commit d7c7c1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alez.sh
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ get_parts() {
}

update_parts() {
partinfo="$(get_parts)"
plength="$(echo "${partinfo}" | wc -l)"
mapfile -t partids < <(ls /dev/disk/by-id/* "$(${show_path} && ls /dev/disk/by-path/* || : ;)")
}
Expand Down Expand Up @@ -465,6 +464,7 @@ while dialog --clear --title "New zpool?" --yesno "${msg}" $HEIGHT $WIDTH; do
dialog --tailbox ${partsfile} 0 0
fi

partinfo="$(get_parts)"
update_parts

if [ "$zpconf" == "s" ]; then
Expand Down Expand Up @@ -549,6 +549,7 @@ if [[ "${install_type}" =~ ^(u|U)$ ]]; then
dialog --tailbox ${partsfile} 0 0
fi

partinfo="$(get_parts)"
update_parts

# shellcheck disable=SC2086
Expand Down Expand Up @@ -597,6 +598,7 @@ if [[ "${install_type}" =~ ^(b|B)$ ]]; then
dialog --tailbox ${partsfile} 0 0
fi

partinfo="$(get_disks)"
update_parts

# shellcheck disable=SC2086
Expand Down

0 comments on commit d7c7c1e

Please sign in to comment.