Open septatrix opened 6 days ago
@septatrix Minimize=
just doesn't work for the ESP and XBOOTLDR partitions because we run systemd-repart
twice to populate the partitions. The first time to populate all partitions except the ESP and XBOOTLDR partitions. Afterwards we figure out the roothash if needed, build the UKI and then populate the ESP and XBOOTLDR. However, because the ESP is usually put before the rootfs partition, we need to allocate space for it up front when we run systemd-repart
the first time. At this point the ESP does not contain your UKI yet and so any calculations done by using Minimize=
will be too small.
I'm sorry but for the ESP and XBOOTLDR partitions you should set the size manually.
mkosi commit the issue has been seen with
e02d40e9ac339d1a62f53393a852c0e1ab549212
Used host distribution
Fedora 40
Used target distribution
Fedora 40
Linux kernel version used
6.10.7-200.fc40.x86_64
CPU architectures issue was seen on
None
Unexpected behaviour you saw
mkosi failed to generate an image due to improper partition sizing
Used mkosi config
mkosi output