diff options
Diffstat (limited to 'examples/rootfs.yml')
-rw-r--r-- | examples/rootfs.yml | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/examples/rootfs.yml b/examples/rootfs.yml index 15f2bc6..c6ac953 100644 --- a/examples/rootfs.yml +++ b/examples/rootfs.yml @@ -8,10 +8,38 @@ tasks: output: default: {} run: | - mkdir -p {{destdir}}/usr/bin {{destdir}}/usr/lib + mkdir -p \ + {{destdir}}/dev \ + {{destdir}}/proc \ + {{destdir}}/sys \ + {{destdir}}/root \ + {{destdir}}/run \ + {{destdir}}/var \ + {{destdir}}/usr/bin \ + {{destdir}}/usr/lib + ln -s bin {{destdir}}/usr/sbin ln -s usr/bin {{destdir}}/bin ln -s usr/bin {{destdir}}/sbin ln -s usr/lib {{destdir}}/lib + ln -s ../run {{destdir}}/var/run + rsync -aK {{sysroot}}/ {{destdir}} + + image-ext4: + args: + host: 'platform' + build_depends: + - recipe: 'e2fsprogs' + task: 'install' + depends: + - task: 'install' + output: + default: {} + run: | + mkdir {{destdir}} + + IMAGE={{destdir}}/rootfs.ext4 + truncate -s 1G "$IMAGE" + mkfs.ext4 -d {{sysroot}} "$IMAGE" |