From b6bfd66c86997aabf3e6babcca3b9037ed8e006c Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Sat, 3 Jun 2017 02:17:08 +0200 Subject: [PATCH] oem: Align rescue partition differently for Librem Partitioning is weird, but this seems to be a working configuration for the Librem devices at least, that partman in d-i can accept and will not try to override. --- .../var/lib/pureos-oem/install-pureos-oem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/includes.chroot.oem/var/lib/pureos-oem/install-pureos-oem.py b/config/includes.chroot.oem/var/lib/pureos-oem/install-pureos-oem.py index 86fc51e..71ffed3 100755 --- a/config/includes.chroot.oem/var/lib/pureos-oem/install-pureos-oem.py +++ b/config/includes.chroot.oem/var/lib/pureos-oem/install-pureos-oem.py @@ -77,7 +77,7 @@ class LibremDiskDevice(object): # create the rescue disk partition - the size has been chosen to d-i's liking, so # it doesn't attempt to truncate or override the partition partition_size = round(2099249152 / (device.sectorSize)) # 2 GB - self._new_partition(device, disk, 1, partition_size, True) + self._new_partition(device, disk, 2048, partition_size, True) # 2048 padding is required to make d-i not override the rescue partition disk.commit()