summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTails developers <tails@boum.org>2013-12-04 14:27:15 +0000
committerTails developers <tails@boum.org>2013-12-21 13:46:17 +0000
commitf1c3fe8e52724c61b2c9ee5b19aa8efcf8aa1aa8 (patch)
treeaebf9b92f8b80b8432213efc53e1b93498ad64a7
parent611a4cc120ca550354f6fabd8a9cebe548c4ff99 (diff)
Create Tails system partition as an EFI System Partition.
This of course also requires an EFI bootloader. Else, there is a risk of breaking non-EFI boot on some systems.
-rwxr-xr-xliveusb/creator.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/liveusb/creator.py b/liveusb/creator.py
index 5fbf8a0..befd318 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -49,8 +49,7 @@ from liveusb.config import config
from liveusb.source import SourceError
#XXX: size should be configurable
-SYSTEM_PARTITION_FLAGS = [ #XXX: not until we ship an UEFI bootloader
- #0, # system partition
+SYSTEM_PARTITION_FLAGS = [ 0, # system partition
2, # legacy BIOS bootable
60, # read-only
62, # hidden
@@ -234,7 +233,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 8301 (Linux reserved)
- '--typecode=1:8301',
+ '--typecode=1:EF00',
# first part, set label
'--change-name=%s' % self.label,
self.drive['device']
@@ -850,7 +849,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
offset = 0
size = self.system_partition_size * 2**20
- partition_type = '8DA63339-0007-60C0-C436-083AC8230908'
+ partition_type = 'C12A7328-F81F-11D2-BA4B-00A0C93EC93B'
label = self.label
flags = dbus.Array(signature='s')
options = dbus.Array(signature='s')