Commit a22f895
committed
qcom-minimal-image: empty /boot so the ESP can be mounted there
On EFI machines the system boots from the ESP partition via UKIs, so
the kernel and boot loader entries staged in /boot of the rootfs are
never used. Worse, a non-empty /boot prevents systemd from mounting
the ESP there at runtime.
Empty /boot at rootfs postprocess time, keeping the directory itself
as the mountpoint. Guard on the efi machine feature, matching the ESP
image's own gating, since on non-EFI machines /boot may be the real
boot path.
This also aligns the regular images with the OTA-enabled ones, where
meta-updater already splits the boot content out of the rootfs and
ships an empty /boot. The cleanup is a no-op for the sota pipeline,
which discards the rootfs /boot content on its own.
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>1 parent 8e50f00 commit a22f895
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
0 commit comments