diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2013-03-18 15:23:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-18 21:42:24 +0000 |
commit | 95bb9de25da5b84dbef4ab016f1548740a9e8a2d (patch) | |
tree | e04478ecb69776e9d986f35faea694aee6333b44 /scripts | |
parent | 21a10406d3ff909aaecc192f1d717e6158c5492c (diff) | |
download | poky-95bb9de25da5b84dbef4ab016f1548740a9e8a2d.tar.gz |
mkefidisk.sh: create a proper ESP
The script was creating a FAT fs with EFI files in it, but wasn't setting the GPT GUID.
Using 'gummiboot install' natively failed because of the missing GPT GUID, so fix that. While we're there also set the name to "EFI System Partition".
(From OE-Core rev: 203ca80ee27948e2c68aab8ea48e51ff1c1157d5)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/contrib/mkefidisk.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh index 44ac130a68..b7db0a9134 100755 --- a/scripts/contrib/mkefidisk.sh +++ b/scripts/contrib/mkefidisk.sh | |||
@@ -166,6 +166,14 @@ parted $DEVICE mklabel gpt | |||
166 | echo "Creating boot partition on $BOOTFS" | 166 | echo "Creating boot partition on $BOOTFS" |
167 | parted $DEVICE mkpart primary 0% $BOOT_SIZE | 167 | parted $DEVICE mkpart primary 0% $BOOT_SIZE |
168 | 168 | ||
169 | # GPT doesn't have a real boot flag, parted will change the GUID to EFI System Partition, | ||
170 | # which is what we want | ||
171 | echo "Enabling boot flag on $BOOTFS" | ||
172 | parted $DEVICE set 1 boot on | ||
173 | |||
174 | echo "Labeling $BOOTFS as EFI System Partition" | ||
175 | parted $DEVICE name 1 "EFI System Partition" | ||
176 | |||
169 | echo "Creating ROOTFS partition on $ROOTFS" | 177 | echo "Creating ROOTFS partition on $ROOTFS" |
170 | parted $DEVICE mkpart primary $ROOTFS_START $ROOTFS_END | 178 | parted $DEVICE mkpart primary $ROOTFS_START $ROOTFS_END |
171 | 179 | ||