diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2017-04-10 17:04:13 +0200 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2017-04-11 17:37:48 +0200 |
commit | 58e7b90e392c911fa3df2d17fda34441ea509675 (patch) | |
tree | 0058130c325d502fd7e70530514a8fa8dd8a63aa /scripts/lib/wic | |
parent | 77e701b94ed91762df51ddae3743c3bde4ca9f8f (diff) | |
download | meta-updater-58e7b90e392c911fa3df2d17fda34441ea509675.tar.gz |
Add configuration for grub-efi on Minnowboard
Diffstat (limited to 'scripts/lib/wic')
-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 | ||