From 59fae65452f74fb9ee66859949addb9ee522c21c Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sat, 27 Feb 2021 09:54:31 +0100 Subject: [PATCH] feat: add leagacy boot support --- drive.inc | 1 + tests/data/parted.dat | 2 +- tests/data/rename.dat | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drive.inc b/drive.inc index aaee55e..df4dab6 100644 --- a/drive.inc +++ b/drive.inc @@ -8,6 +8,7 @@ function setup_drive unit MiB \ mkpart '"EFI system partition"' fat32 1 1024 \ set 1 esp on \ + set 1 legacy_boot on \ mkpart '"root unused"' ext4 1025 2048 \ mkpart '"root unused"' ext4 2049 3072 \ mkpart '"root unused"' ext4 3073 4096 \ diff --git a/tests/data/parted.dat b/tests/data/parted.dat index 9298ef4..7c30064 100644 --- a/tests/data/parted.dat +++ b/tests/data/parted.dat @@ -1,6 +1,6 @@ BYT; T_E_M_P:17.2GB:file:512:512:gpt::; -1:1049kB:1074MB:1073MB::EFI system partition:boot, esp; +1:1049kB:1074MB:1073MB::EFI system partition:boot, legacy_boot, esp; 2:1075MB:2147MB:1073MB::root unused:; 3:2149MB:3221MB:1073MB::root unused:; 4:3222MB:4295MB:1073MB::root unused:; diff --git a/tests/data/rename.dat b/tests/data/rename.dat index 2f52f96..6badbe6 100644 --- a/tests/data/rename.dat +++ b/tests/data/rename.dat @@ -1,6 +1,6 @@ BYT; T_E_M_P:17.2GB:file:512:512:gpt::; -1:1049kB:1074MB:1073MB::EFI system partition:boot, esp; +1:1049kB:1074MB:1073MB::EFI system partition:boot, legacy_boot, esp; 2:1075MB:2147MB:1073MB::root renamed:; 3:2149MB:3221MB:1073MB::root unused:; 4:3222MB:4295MB:1073MB::root unused:;