]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wic: Use ROOTFS_DIR to locate pseudo_dir rbt/wic
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 15 Jun 2022 03:44:28 +0000 (20:44 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 15 Jun 2022 09:34:29 +0000 (02:34 -0700)
commite9fd1171abef26955009404e3290f6cead368799
treed62eb3c2276bf6f7f80029ff1bd7638502daae24
parentdd39446dff75c6e48f4aa44ec90087f172d717d4
wic: Use ROOTFS_DIR to locate pseudo_dir

Fixed when wks is:
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --fixed-size 256M
part / --source rootfs --exclude-path=var/ --ondisk mmcblk0 --fstype=ext4 --label root --align 4096
part /var --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var --ondrive mmcblk0 --fstype=ext4 --label var --align 4096 --fixed-size 1024M --fsoptions=ro,relatime,sync

$ bitbake <image>
$ wic create <wks> -e <image>
WARNING: /path/to/rootfs/var/../pseudo folder does not exist. Usernames and permissions will be invalid

The --rootfs-dir can be anywhere, so the ../pseudo may not exist, use
ROOTFS_DIR to fix the problem.

From: Rath Anil Kumar <AnilKumar.Rath@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
scripts/lib/wic/plugins/source/rootfs.py