summaryrefslogtreecommitdiffstats
path: root/yocto-poky/scripts/lib/wic/canned-wks/directdisk.wks
diff options
context:
space:
mode:
Diffstat (limited to 'yocto-poky/scripts/lib/wic/canned-wks/directdisk.wks')
-rw-r--r--yocto-poky/scripts/lib/wic/canned-wks/directdisk.wks10
1 files changed, 10 insertions, 0 deletions
diff --git a/yocto-poky/scripts/lib/wic/canned-wks/directdisk.wks b/yocto-poky/scripts/lib/wic/canned-wks/directdisk.wks
new file mode 100644
index 000000000..af4c9eada
--- /dev/null
+++ b/yocto-poky/scripts/lib/wic/canned-wks/directdisk.wks
@@ -0,0 +1,10 @@
+# short-description: Create a 'pcbios' direct disk image
+# long-description: Creates a partitioned legacy BIOS disk image that the user
+# can directly dd to boot media.
+
+
+part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
+part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024
+
+bootloader --timeout=0 --append="rootwait rootfstype=ext4 video=vesafb vga=0x318 console=tty0"
+
OpenPOWER on IntegriCloud