We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0013e commit c29def6Copy full SHA for c29def6
installer/x86_64/install.sh
@@ -163,11 +163,21 @@ create_demo_gpt_partition()
163
while read -r part_index; do
164
if [ "$blk_dev$part_index" = "$cur_part" ]; then continue; fi
165
echo "deleting partition $part_index ..."
166
+ # if the partition is already mounted, umount first
167
+ df $blk_dev$part_index 2>/dev/null && {
168
+ umount $blk_dev$part_index || {
169
+ echo "Error: Unable to umount $blk_dev$part_index"
170
+ exit 1
171
+ }
172
173
sgdisk -d $part_index $blk_dev || {
174
echo "Error: Unable to delete partition $part_index on $blk_dev"
175
exit 1
176
}
- partprobe
177
+ partprobe || {
178
+ echo "Error: Unable to partprobe"
179
180
181
done < $tmpfifo
182
fi
183
0 commit comments