aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2016-11-01 07:13:13 -0700
committerSaul Wold <sgw@linux.intel.com>2016-11-01 08:23:15 -0700
commitbd25743d3d43d75d7e665773eb906f772fa1b679 (patch)
tree878fbe3c284558ac42b10f497c5106b76ae7cf8a /scripts
parent9373044911df5eca470217f5c93e92c17793b319 (diff)
downloadmeta-intel-bd25743d3d43d75d7e665773eb906f772fa1b679.tar.gz
meta-intel-bd25743d3d43d75d7e665773eb906f772fa1b679.tar.bz2
meta-intel-bd25743d3d43d75d7e665773eb906f772fa1b679.zip
systemd-bootdisk: Add WKS file with uuid support
Temporarily add a wks file to support systemd-boot with uuid, this patch is already pending for OE-Core, but did not make the 2.2 release, by adding this here, it can support both USB and SD devices. Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/canned-wks/systemd-bootdisk.wks11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/lib/wic/canned-wks/systemd-bootdisk.wks b/scripts/lib/wic/canned-wks/systemd-bootdisk.wks
new file mode 100644
index 00000000..fecaac2d
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/systemd-bootdisk.wks
@@ -0,0 +1,11 @@
+# short-description: Create an EFI disk image with systemd-boot
+# long-description: Creates a partitioned EFI disk image that the user
+# can directly dd to boot media. The selected bootloader is systemd-boot.
+
+part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk sda --label msdos --active --align 1024
+
+part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
+
+part swap --ondisk sda --size 44 --label swap1 --fstype=swap
+
+bootloader --ptable gpt --timeout=5 --append="rootwait rootfstype=ext4 console=tty0"