mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-04 10:53:30 +08:00
4e89862706
For grub-efi we can align the rootfs to start at exactly 16MB from the beginning of the disk. This can be done by reducing the vfat partition to be 32 KB smaller than its 16MB size, just like the offset of the vfat partition. Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com> [Peter: drop redundant offset/size settings, add comment] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
35 lines
584 B
INI
35 lines
584 B
INI
image efi-part.vfat {
|
|
vfat {
|
|
file startup.nsh {
|
|
image = "efi-part/startup.nsh"
|
|
}
|
|
file EFI {
|
|
image = "efi-part/EFI"
|
|
}
|
|
file bzImage {
|
|
image = "bzImage"
|
|
}
|
|
}
|
|
# 16MB - 32KB
|
|
size = 16744448
|
|
}
|
|
|
|
image disk.img {
|
|
hdimage {
|
|
gpt = true
|
|
}
|
|
|
|
partition boot {
|
|
image = "efi-part.vfat"
|
|
partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
|
|
offset = 32768
|
|
bootable = true
|
|
}
|
|
|
|
partition root {
|
|
partition-type-uuid = 44479540-f297-41b2-9af7-d131d5f0458a
|
|
partition-uuid = UUID_TMP
|
|
image = "rootfs.ext2"
|
|
}
|
|
}
|