diff --git a/pmb/install/partition.py b/pmb/install/partition.py index 456943c3..08f9094d 100644 --- a/pmb/install/partition.py +++ b/pmb/install/partition.py @@ -145,20 +145,6 @@ def partition_cgpt(args, layout, size_boot, size_reserve): commands = [ ["parted", "-s", "/dev/install", "mktable", "gpt"], ["cgpt", "create", "/dev/install"], - [ - "cgpt", "add", - # pmOS_boot is second partition, the first will be ChromeOS kernel - # partition - "-i", str(layout["boot"]), # Partition number - "-t", "efi", # Mark this partition as bootable for u-boot - "-b", boot_part_start, - "-s", s_boot, - "-l", "pmOS_boot", - "/dev/install" - ], - # For some reason cgpt switches all flags to 0 after marking - # any partition as bootable, so create ChromeOS kernel partition - # only after pmOS_boot is created and marked as bootable [ "cgpt", "add", "-i", str(layout["kernel"]), @@ -171,6 +157,17 @@ def partition_cgpt(args, layout, size_boot, size_reserve): "-P", "10", # Priority flag "/dev/install" ], + [ + "cgpt", "add", + # pmOS_boot is second partition, the first will be ChromeOS kernel + # partition + "-i", str(layout["boot"]), # Partition number + "-t", "efi", # Mark this partition as bootable for u-boot + "-b", boot_part_start, + "-s", s_boot, + "-l", "pmOS_boot", + "/dev/install" + ], ] dev_size = pmb.chroot.root(