summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2018-11-22 17:16:11 +0100
committerintrigeri <intrigeri@boum.org>2018-11-27 11:20:35 +0000
commitefb5e912bc209c4832a41055daa3abde975d9598 (patch)
tree5948c311198ec88c3f0b05d7ba9e8efa1a59781e
parent4ce2a709b694917e27e8c0bf347d68eefaeb1140 (diff)
Set a fixed partition GUID in .img (refs: #15985)
-rwxr-xr-xauto/scripts/create-usb-image-from-iso7
1 files changed, 4 insertions, 3 deletions
diff --git a/auto/scripts/create-usb-image-from-iso b/auto/scripts/create-usb-image-from-iso
index b36fe76..9c880a1 100755
--- a/auto/scripts/create-usb-image-from-iso
+++ b/auto/scripts/create-usb-image-from-iso
@@ -118,7 +118,7 @@ class ImageCreator(object):
# Might it be https://bugs.chromium.org/p/chromium/issues/detail?id=508713 ?
time.sleep(1)
self.install_syslinux()
- self.set_guid()
+ self.set_guids()
def extract_iso(self):
logger.info("Extracting ISO contents to the partition")
@@ -318,8 +318,9 @@ class ImageCreator(object):
as_root=True # XXX: Why does this only work as root?
)
- def set_guid(self):
- execute(["/sbin/sgdisk", "--disk-guid", "17B81DA0-8B1E-4269-9C39-FE5C7B9B58A3", self.image])
+ def set_guids(self):
+ execute(["/sbin/sgdisk", "--disk-guid", "17B81DA0-8B1E-4269-9C39-FE5C7B9B58A3",
+ "--partition-guid", "1:34BF027A-8001-4B93-8243-1F9D3DCE7DE7", self.image])
def execute(cmd: list, as_root=False):