summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2014-05-25 21:23:47 +0000
committerTails developers <tails@boum.org>2014-05-25 21:23:47 +0000
commitd9452192bb45613ef0666b2c30dbbea8c861859f (patch)
tree9a6925d03fa1e7e9456ce8efcb75da7001732527
parent40a9175bdf4cdcbeda9c015a89a61a0175ee6eff (diff)
Drop duplicate representation of GUID's: Wheezy's sgdisk supports fully-specified GUID values.
-rwxr-xr-xliveusb/creator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/liveusb/creator.py b/liveusb/creator.py
index a8fcab4..8d1761a 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -57,7 +57,6 @@ SYSTEM_PARTITION_FLAGS = [ 0, # system partition
]
# EFI System Partition
ESP_GUID = 'C12A7328-F81F-11D2-BA4B-00A0C93EC93B'
-ESP_TYPECODE = 'EF00'
class LiveUSBError(Exception):
""" A generic error message that is thrown by the LiveUSBCreator """
@@ -236,7 +235,7 @@ class LiveUSBCreator(object):
# new partition (first), starts at begining, with given MiB size
'--new=1:0:+%dM' % self.system_partition_size,
# first part, set type EFI System
- '--typecode=1:%s' % ESP_TYPECODE,
+ '--typecode=1:%s' % ESP_GUID,
# first part, set label
'--change-name=%s' % self.label,
self.drive['device']
@@ -246,7 +245,7 @@ class LiveUSBCreator(object):
def update_system_partition_properties(self):
cmd = ( [ '/sbin/sgdisk' ]
- + [ '--typecode=1:%s' % ESP_TYPECODE ]
+ + [ '--typecode=1:%s' % ESP_GUID ]
+ [ self.drive['device'] ])
self.popen(cmd, shell=False)