Commit 58e5b885 authored by segfault's avatar segfault Committed by intrigeri
Browse files

Fix USB image not being bootable anymore (refs: #16149)

This fixes that syslinux is installed while the system partition is
mounted, introduced in eb4a6a57.
parent 310bf6b6
......@@ -111,14 +111,17 @@ class ImageCreator(object):
self.install_mbr()
self.copy_syslinux_modules()
# This sleep is a workaround for a race condition which causes the
# syslinux installation to return without errors, even though the
# bootloader isn't actually installed
# XXX: Investigate and report this race condition
# Might it be https://bugs.chromium.org/p/chromium/issues/detail?id=508713 ?
time.sleep(1)
self.install_syslinux()
self.set_guids()
# We have to install syslinux after the partition was unmounted.
# This sleep is a workaround for a race condition which causes the
# syslinux installation to return without errors, even though the
# bootloader isn't actually installed
# XXX: Investigate and report this race condition
# Might it be https://bugs.chromium.org/p/chromium/issues/detail?id=508713 ?
time.sleep(1)
self.install_syslinux()
self.set_guids()
with self.mount_partition():
self.reset_timestamps()
def extract_iso(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment