diff options
Diffstat (limited to 'scripts/lib/wic/canned-wks')
-rw-r--r-- | scripts/lib/wic/canned-wks/efiimage-sota.wks | 8 | ||||
-rw-r--r-- | scripts/lib/wic/canned-wks/grub-ota.cfg | 2 |
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 | |||
5 | part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --ondisk hda --label msdos --active --align 1024 | ||
6 | part / --source otaimage --ondisk hda --fstype=ext4 --align 1024 --use-uuid | ||
7 | |||
8 | bootloader --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 @@ | |||
1 | search.fs_label otaroot root | ||
2 | configfile /boot/loader/grub.cfg | ||