summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
d2b4155)
This will fix the installation if there is existing partitions.
The check is needed since the data is cached and wiping will be
done first to the actual disk and then to the partition. If such
partition does not exist then it will create a file instead.
Change-Id: I6f8f9388adb20b7d8496be38ad3676576f2eee6a
Signed-off-by: Janne Suominen <janne.suominen@nokia.com>
if [ -b /dev/$hd_dev ] && (( is_removable $hd_dev ) || ( is_partition $hd_dev ) || ( is_loop $hd_dev )); then
echo "Removable or partition $hd_dev. Skipping..."
continue
if [ -b /dev/$hd_dev ] && (( is_removable $hd_dev ) || ( is_partition $hd_dev ) || ( is_loop $hd_dev )); then
echo "Removable or partition $hd_dev. Skipping..."
continue
+ elif ! [ -b /dev/$hd_dev ]; then
+ continue
fi
wipefs --all /dev/$hd_dev
sgdisk -Z -o /dev/$hd_dev
fi
wipefs --all /dev/$hd_dev
sgdisk -Z -o /dev/$hd_dev