aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2018-06-04 16:00:42 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2018-06-12 14:41:16 +0800
commit09879b0e951813867c490596c215c60e7880d4cb (patch)
treeef3deb53ab821a0763b02c45df2317d1da4f3f6a
parentd423576931b1d7c92939b5bc8529bc54619fa43c (diff)
downloadmeta-intel-09879b0e951813867c490596c215c60e7880d4cb.tar.gz
meta-intel-09879b0e951813867c490596c215c60e7880d4cb.tar.bz2
meta-intel-09879b0e951813867c490596c215c60e7880d4cb.zip
wic: add wks for enabling grub-efi bootloader
Use our own wks when grub-efi is used and make sure that microcode is early loaded. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--wic/grub-bootdisk-microcode.wks12
1 files changed, 12 insertions, 0 deletions
diff --git a/wic/grub-bootdisk-microcode.wks b/wic/grub-bootdisk-microcode.wks
new file mode 100644
index 00000000..7eda3766
--- /dev/null
+++ b/wic/grub-bootdisk-microcode.wks
@@ -0,0 +1,12 @@
+# short-description: Create an EFI disk image with grub-efi
+# long-description: Creates a partitioned EFI disk image that the user
+# can directly dd to boot media. The selected bootloader is grub-efi.
+# It also includes intel-microcode as an initrd for early update support.
+
+part /boot --source bootimg-efi --sourceparams="loader=grub-efi,initrd=microcode.cpio" --ondisk sda --label msdos --active --align 1024 --use-uuid
+
+part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
+
+part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
+
+bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 console=ttyS0,115200 console=tty0"