mirror of
https://git.yoctoproject.org/poky
synced 2026-06-13 17:10:01 +00:00
wic: root: Add an opt. destination on include-path
Allow specifying an optional destination to include-path and make the option aware of permissions and owners. It is very useful for making a partition that contains the rootfs for a host and a target Eg: / -> Roofs for the host /export/ -> Rootfs for the target (which will netboot) Although today we support making a partition for "/export" this might not be compatible with some upgrade systems, or we might be limited by the number of partitions. With this patch we can use something like: part / --source rootfs --fstype=ext4 --include-path core-image-minimal-mtdutils export/ --include-path hello on the .wks file. Cc: Paul Barker <pbarker@konsulko.com> (From OE-Core rev: e8c21c6ebaebde88151697381bdb2452f1171090) Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fc2589384b
commit
a293c76c53
+12
-8
@@ -971,14 +971,18 @@ DESCRIPTION
|
||||
has an effect with the rootfs source plugin.
|
||||
|
||||
--include-path: This option is specific to wic. It adds the contents
|
||||
of the given path to the resulting image. The path is
|
||||
relative to the directory in which wic is running not
|
||||
the rootfs itself so use of an absolute path is
|
||||
recommended. This option is most useful when multiple
|
||||
copies of the rootfs are added to an image and it is
|
||||
required to add extra content to only one of these
|
||||
copies. This option only has an effect with the rootfs
|
||||
source plugin.
|
||||
of the given path or a rootfs to the resulting image.
|
||||
The option contains two fields, the origin and the
|
||||
destination. When the origin is a rootfs, it follows
|
||||
the same logic as the rootfs-dir argument and the
|
||||
permissions and owners are kept. When the origin is a
|
||||
path, it is relative to the directory in which wic is
|
||||
running not the rootfs itself so use of an absolute
|
||||
path is recommended, and the owner and group is set to
|
||||
root:root. If no destination is given it is
|
||||
automatically set to the root of the rootfs. This
|
||||
option only has an effect with the rootfs source
|
||||
plugin.
|
||||
|
||||
--change-directory: This option is specific to wic. It changes to the
|
||||
given directory before copying the files. This
|
||||
|
||||
Reference in New Issue
Block a user