From 58dd9484bf39b65ff285fb62b183ef90d2625da2 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 3 Apr 2013 10:17:24 -0700 Subject: [PATCH] Use parted to check for GPT disklabel (#947653) --- tools/livecd-iso-to-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh index 1a87869..eb7c3cc 100755 --- a/tools/livecd-iso-to-disk.sh +++ b/tools/livecd-iso-to-disk.sh @@ -519,7 +519,7 @@ checkGPT() { dev=$1 getdisk $dev - if [ "$(/sbin/fdisk -l $device 2>/dev/null |grep -c GPT)" -eq "0" ]; then + if [ "$(/sbin/parted -m $device p 2>/dev/null |grep -ic :gpt:)" -eq "0" ]; then echo "EFI boot requires a GPT partition table." echo "This can be done manually or you can run with --format" exitclean -- 2.11.4.GIT