1*4882a593Smuzhiyun# short-description: Create multi rootfs image using rootfs plugin 2*4882a593Smuzhiyun# long-description: Creates a partitioned disk image with two rootfs partitions 3*4882a593Smuzhiyun# using rootfs plugin. 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun# Partitions can use either 6*4882a593Smuzhiyun# - indirect rootfs references to image recipe(s): 7*4882a593Smuzhiyun# wic create directdisk-multi-indirect-recipes -e core-image-minimal \ 8*4882a593Smuzhiyun# --rootfs-dir rootfs1=core-image-minimal 9*4882a593Smuzhiyun# --rootfs-dir rootfs2=core-image-minimal-dev 10*4882a593Smuzhiyun# 11*4882a593Smuzhiyun# - or paths to rootfs directories: 12*4882a593Smuzhiyun# wic create directdisk-multi-rootfs \ 13*4882a593Smuzhiyun# --rootfs-dir rootfs1=tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/ 14*4882a593Smuzhiyun# --rootfs-dir rootfs2=tmp/work/qemux86_64-poky-linux/core-image-minimal-dev/1.0-r0/rootfs/ 15*4882a593Smuzhiyun# 16*4882a593Smuzhiyun# - or any combinations of -r and --rootfs command line options 17*4882a593Smuzhiyun 18*4882a593Smuzhiyunpart /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 19*4882a593Smuzhiyunpart / --source rootfs --rootfs-dir=rootfs1 --ondisk sda --fstype=ext4 --label platform --align 1024 20*4882a593Smuzhiyunpart /rescue --source rootfs --rootfs-dir=rootfs2 --ondisk sda --fstype=ext4 --label secondary --align 1024 21*4882a593Smuzhiyun 22*4882a593Smuzhiyunbootloader --timeout=0 --append="rootwait rootfstype=ext4 video=vesafb vga=0x318 console=tty0 console=ttyS0,115200n8" 23*4882a593Smuzhiyun 24