summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/canned-wks
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-12-01 08:10:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-09 08:48:25 +0000
commit8612f260048fe53f46149708baa6bd1985a4eb9f (patch)
treee2c93343734d73b144afbac49676880d727e16fa /scripts/lib/wic/canned-wks
parentc59dc3bae09ccb3749539dd5f1ddc12e26591523 (diff)
downloadpoky-8612f260048fe53f46149708baa6bd1985a4eb9f.tar.gz
directdisk-bootloader-config.wks: Add example for custom bootloader config
Add new wks file as a example for a custom bootloader configuration. This change also includes the configuration that file that will be used. This example is using syslinux with MBR, the configuration file is almost the same as the one generated by wic. As stated before this is just an example. [YOCTO #8728] (From OE-Core rev: 4a9db893f721c0da5d103d28b97a0302cc9e2197) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/canned-wks')
-rw-r--r--scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg11
-rw-r--r--scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks10
2 files changed, 21 insertions, 0 deletions
diff --git a/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg b/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
new file mode 100644
index 0000000000..a16bd6ac61
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
@@ -0,0 +1,11 @@
1# This is an example configuration file for syslinux.
2PROMPT 0
3TIMEOUT 10
4
5ALLOWOPTIONS 1
6SERIAL 0 115200
7
8DEFAULT boot
9LABEL boot
10KERNEL /vmlinuz
11APPEND label=boot root=/dev/sda2 rootwait rootfstype=ext4 video=vesafb vga=0x318 console=tty0
diff --git a/scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks b/scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks
new file mode 100644
index 0000000000..4808d04d4d
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks
@@ -0,0 +1,10 @@
1# short-description: Create a 'pcbios' direct disk image with custom bootloader config
2# long-description: Creates a partitioned legacy BIOS disk image that the user
3# can directly dd to boot media. The bootloader configuration source is a user file.
4
5
6part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
7part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024
8
9bootloader --configfile="directdisk-bootloader-config.cfg"
10