commit 0bd667504d084b48c8cb1d63f70efe7eb61ad254
parent 28ecfc83c3e5be2b0bce0d2a7e49aecf2d869dac
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Fri, 3 Jul 2015 03:51:53 +0200
consider partition with only GPT metadata empty
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/zsh-functions/confz_fs_init b/zsh-functions/confz_fs_init
@@ -472,6 +472,7 @@ confz_filesystem_check() {
[[ -z $blk_out ]] && return 1 # nothing found on the device
eval $blk_out
[[ $LABEL == ${vars[label]} && $TYPE == $vars[filesystem] ]] && return 0
+ [[ -z $TYPE && -z $LABEL && -z $UUID ]] && return 1
die "$0: filesystem already present on ${(qqq)vars[device]}!"
}