coreos / coreos-assembler

Tooling container to assemble CoreOS-like systems
https://coreos.github.io/coreos-assembler/
Apache License 2.0
335 stars 165 forks source link

create_disk.sh: fix Secure Execution build #3697

Closed jlebon closed 7 months ago

jlebon commented 7 months ago

In 84ce8dca0, we broke the Secure Execution build because the root filesystem takes up all the remaining space, which leaves no space for the verity partitions that need to come after.

Hack around this by making the root partition end 384M before the end of the disk (that's the sum of the sizes of the verity partitions).

Fixes 84ce8dca0 ("buildextend-metal: rework image size and rootfs size handling").

jlebon commented 7 months ago

(Not tested yet.)

jlebon commented 7 months ago

OK cool, this is tested working now!

jlebon commented 7 months ago

If this passes ShellCheck, let's just merge this in since it's not covered by CI otherwise.