diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2020-04-19 08:35:31 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-26 14:00:50 +0100 |
commit | d19004da2fd40109322990061bb4fe48d91a6150 (patch) | |
tree | b5ae0ad163dc20507aa68e4cc91d38ab9d5dea98 /scripts/lib/wic/help.py | |
parent | c58711f0ea2a4d3b54e9f5f442abe3192f4697d0 (diff) | |
download | poky-d19004da2fd40109322990061bb4fe48d91a6150.tar.gz |
wic: Add --change-directory argument
This option allows to specify which part of a rootfs is going to be
included, the same way the -C argument on tar.
Thanks to this option we can make sure the permissions and usernames
on the target partition are respected, and also simplify the creation of
splitted partitons, not neeting to invoke external vars or using .wks.in
files. Eg:
part / --source rootfs --ondisk sda --fstype=ext4 --exclude-path=etc/
part /etc --source rootfs --fstype=ext4 --change-directory=etc
Cc: Paul Barker <pbarker@konsulko.com>
(From OE-Core rev: 2265d089a58e1f78f26d623ee667c420cb1c3bd4)
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 1e3d06a87b..62a2a90e79 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
@@ -980,6 +980,12 @@ DESCRIPTION | |||
980 | copies. This option only has an effect with the rootfs | 980 | copies. This option only has an effect with the rootfs |
981 | source plugin. | 981 | source plugin. |
982 | 982 | ||
983 | --change-directory: This option is specific to wic. It changes to the | ||
984 | given directory before copying the files. This | ||
985 | option is useful when we want to split a rootfs in | ||
986 | multiple partitions and we want to keep the right | ||
987 | permissions and usernames in all the partitions. | ||
988 | |||
983 | --extra-space: This option is specific to wic. It adds extra | 989 | --extra-space: This option is specific to wic. It adds extra |
984 | space after the space filled by the content | 990 | space after the space filled by the content |
985 | of the partition. The final size can go | 991 | of the partition. The final size can go |