blkid used to return with an exit code of 2 if 'blkid -s TYPE -o
value' was executed on an unformated device. Nowadays blkid
returns with exit code 0 even if there's no file system on the
according device.
Related to #772846 in Debian.
Closes: #772849
fi
PARTITION_LIST=$(for i in $AVAILABLE_PARTITIONS ; do
- echo "$i $(blkid -s TYPE -o value "$i" 2>/dev/null || echo '[no_filesystem_yet]')"
+ fs="$(blkid -s TYPE -o value "$i" 2>/dev/null)"
+ [ -n "$fs" ] || fs='[no_filesystem_yet]'
+ echo "$i" "$fs"
+ unset fs
done)
TARGET=$(dialog --title "$PN" --single-quoted --stdout \