]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
wic/plugins/rootfs: Fix permissions when splitting rootfs folders across partitions
authorFelix Moessbauer <felix.moessbauer@siemens.com>
Fri, 6 May 2022 08:59:41 +0000 (10:59 +0200)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 13 May 2022 14:38:11 +0000 (22:38 +0800)
commitd730fbc26993c2187c908e57a465536a508e9ee2
tree82bb06dfa1797823222b96ee4caf873d1fd9d199
parenta1dae21b198baddf4eee1cea3ee312b329a043b0
wic/plugins/rootfs: Fix permissions when splitting rootfs folders across partitions

This patches makes locating the file database containing the file and
folder usernames and permissions more reliable.
In addition to locating it relative to the partition directory, we also
try to locate it relative to the IMAGE_ROOTFS.

Prior to this patch, the database was not found when using
--rootfs-dir=${IMAGE_ROOTFS}/<x> in the WIC script, leading to erronous file
permissions and ownership.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 09e18ee246da8b56f446c4db548fb9c7e895142b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
scripts/lib/wic/plugins/source/rootfs.py