diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2020-04-19 08:35:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-26 14:00:50 +0100 |
commit | a293c76c53f985efb4cfbb97aa4facb59c0ccfb6 (patch) | |
tree | 453ffcaf321a7a27d4b43dc5a45b9a5d2cf2a314 /scripts/lib/wic/help.py | |
parent | fc2589384bbf40b2c2b3e81b668eac71762c192f (diff) | |
download | poky-a293c76c53f985efb4cfbb97aa4facb59c0ccfb6.tar.gz |
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>
Diffstat (limited to 'scripts/lib/wic/help.py')
-rw-r--r-- | scripts/lib/wic/help.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 62a2a90e79..bd3a2b97df 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
@@ -971,14 +971,18 @@ DESCRIPTION | |||
971 | has an effect with the rootfs source plugin. | 971 | has an effect with the rootfs source plugin. |
972 | 972 | ||
973 | --include-path: This option is specific to wic. It adds the contents | 973 | --include-path: This option is specific to wic. It adds the contents |
974 | of the given path to the resulting image. The path is | 974 | of the given path or a rootfs to the resulting image. |
975 | relative to the directory in which wic is running not | 975 | The option contains two fields, the origin and the |
976 | the rootfs itself so use of an absolute path is | 976 | destination. When the origin is a rootfs, it follows |
977 | recommended. This option is most useful when multiple | 977 | the same logic as the rootfs-dir argument and the |
978 | copies of the rootfs are added to an image and it is | 978 | permissions and owners are kept. When the origin is a |
979 | required to add extra content to only one of these | 979 | path, it is relative to the directory in which wic is |
980 | copies. This option only has an effect with the rootfs | 980 | running not the rootfs itself so use of an absolute |
981 | source plugin. | 981 | path is recommended, and the owner and group is set to |
982 | root:root. If no destination is given it is | ||
983 | automatically set to the root of the rootfs. This | ||
984 | option only has an effect with the rootfs source | ||
985 | plugin. | ||
982 | 986 | ||
983 | --change-directory: This option is specific to wic. It changes to the | 987 | --change-directory: This option is specific to wic. It changes to the |
984 | given directory before copying the files. This | 988 | given directory before copying the files. This |