[Fedora-livecd-list] tools/livecd-iso-to-disk.sh

Brian C. Lane bcl at fedoraproject.org
Wed Apr 3 17:19:06 UTC 2013


 tools/livecd-iso-to-disk.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 58dd9484bf39b65ff285fb62b183ef90d2625da2
Author: Brian C. Lane <bcl at redhat.com>
Date:   Wed Apr 3 10:17:24 2013 -0700

    Use parted to check for GPT disklabel (#947653)

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




More information about the livecd mailing list