From bd25743d3d43d75d7e665773eb906f772fa1b679 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Tue, 1 Nov 2016 07:13:13 -0700 Subject: 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 --- scripts/lib/wic/canned-wks/systemd-bootdisk.wks | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/lib/wic/canned-wks/systemd-bootdisk.wks 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" -- cgit v1.2.3-54-g00ecf