From 735fed10a0619873693c2d4647f7d3b29c1ce2e8 Mon Sep 17 00:00:00 2001 From: David Trounce Date: Sun, 26 Apr 2020 15:05:15 -0700 Subject: [PATCH] Remove temp partitions from all disks Puts the removal of the temp partitions in the loop, to remove these partitions from all disks --- install-zfs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install-zfs.sh b/install-zfs.sh index 0438b65..2a36d6b 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -923,8 +923,6 @@ function sync_os_temp_installation_dir_to_rpool { function remove_temp_partition_and_expand_rpool { print_step_info_header - parted -s "${v_selected_disks[0]}" rm 4 - if [[ $v_free_tail_space -eq 0 ]]; then local resize_reference=100% else @@ -932,6 +930,7 @@ function remove_temp_partition_and_expand_rpool { fi for selected_disk in "${v_selected_disks[@]}"; do + parted -s "$selected_disk" rm 4 parted -s "$selected_disk" unit s resizepart 3 -- "$resize_reference" zpool online -e "$v_rpool_name" "$selected_disk-part3" done