summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/canned-wks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/canned-wks')
-rw-r--r--scripts/lib/wic/canned-wks/efiimage-sota.wks8
-rw-r--r--scripts/lib/wic/canned-wks/grub-ota.cfg2
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib/wic/canned-wks/efiimage-sota.wks b/scripts/lib/wic/canned-wks/efiimage-sota.wks
new file mode 100644
index 0000000..1e37d96
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/efiimage-sota.wks
@@ -0,0 +1,8 @@
1# short-description: Create an OTA-enabled EFI disk image
2# long-description: Creates an OTA-enabled EFI disk image that the user
3# can directly dd to boot media.
4
5part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --ondisk hda --label msdos --active --align 1024
6part / --source otaimage --ondisk hda --fstype=ext4 --align 1024 --use-uuid
7
8bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4 console=ttyS0,115200 console=tty0" --configfile="grub-ota.cfg"
diff --git a/scripts/lib/wic/canned-wks/grub-ota.cfg b/scripts/lib/wic/canned-wks/grub-ota.cfg
new file mode 100644
index 0000000..fcd8d70
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/grub-ota.cfg
@@ -0,0 +1,2 @@
1search.fs_label otaroot root
2configfile /boot/loader/grub.cfg