Spurious error message on Tails sticks installed a long time ago
A while ago, the size of the system partition created by Tails Installer was 2500 MiB = 2500*1024*1024 = 2621440000 bytes.
Since Tails 6.6 we treat those as an error:
01:00:36.349 '[' 2621440000 -lt 4292870144 ]
01:00:36.350 echo 'The system partition was not correctly resized ' '(expected at least 4292870144, got 2621440000).'
The system partition was not correctly resized (expected at least 4292870144, got 2621440000).
01:00:36.351 set_error_reason system-partition-not-resized
01:00:36.352 echo system-partition-not-resized
01:00:36.353 exit 1
01:00:36.355 log 'The partition table is invalid'
01:00:36.356 date '+%H:%M:%S.%3N'
01:00:36.358 echo '01:00:36.357 The partition table is invalid'
01:00:36.357 The partition table is invalid
01:00:36.359 touch /run/repartitioning-failed
… and we report it to the user. A few already sent us bug reports since we released that.
I think we should do something like this instead:
--- a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/lib/verify_partition_table
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/lib/verify_partition_table
@@ -5,10 +5,10 @@ set -x
ORIG_DISK_GUID="17B81DA0-8B1E-4269-9C39-FE5C7B9B58A3"
-# The minimum size of the system partition in bytes. We've seen sgdisk
-# create a partition with fewer sectors than requested, so we subtract
-# 4096 sectors from the expected size to account for that.
-MIN_SYSTEM_PARTITION_SIZE=$((4096 * 1024 * 1024 - 4096 * 512))
+# The minimum size of the system partition in bytes.
+# We support Tails systems installed back when Tails Installer created
+# 2.5 GB system partitions.
+MIN_SYSTEM_PARTITION_SIZE=$((2500 * 1024 * 1024))
PARENT_DEVICE="$1"
REPARTITIONING_ERROR_FLAG_FILE="$2"
Edited by intrigeri