ESP partition format #2642
-
Hi, does We've been trying to build Raspberry Pi OS image using Raspberry Pi requires a FAT partition to put firmware files and kernel, so I create custom repart definitions in mkosi.repart/ [Partition]
Type=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
Label=bootfs
Format=vfat
CopyFiles=/boot/firmware:/
SizeMinBytes=512M
SizeMaxBytes=512M [Partition]
Type=root
Label=rootfs
Format=ext4
CopyFiles=/
ExcludeFiles=/boot/firmware
Minimize=guess With above definitions, OS can boot fine. But if change the bootfs to use
After skimming systemd-repart code, it seems |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
See the following code:
Without |
Beta Was this translation helpful? Give feedback.
-
Do you mean you recreated RPi-Distro/pi-gen but replaced the build process with mkosi? If that is the case would it be possible to get access to the repo? I also tried that a while ago (#2103) but never really got to try it out due to a lack of time. |
Beta Was this translation helpful? Give feedback.
See the following code:
Without
Type=esp
both partitions will be created before we install the kernel to /boot, withType=esp
, the ESP partition will only be created after we install the kernel to /boot. I assume that's where the issue is coming from.