[yocto] wic: error when using --rootfs-dir=${IMAGE_ROOTFS}/data
Belisko Marek
marek.belisko at gmail.com
Mon Jul 15 23:38:06 PDT 2019
Hi,
I have wks file with following content:
part ubootenv --ondisk=mmcblk --no-table --size 12
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat
--label boot --active --align 1024 --size 16
part /root --source rootfs --ondisk mmcblk --fstype=ext4 --label rootA
--align 1024 --fixed-size 300 --exclude-path data/
part /data --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/data --ondisk
"mmcblk" --fstype=ext4 --label data --align 1024 --fixed-size 200
Basically I want to create extra data partition with content from
rootfs /data directory. When wic image is created I'm getting strange
errors like:
Couldn't get bitbake variable from
/home/marekbelisko/.build/tmp/sysroots/raspberrypi0-wifi/imgdata/${IMAGE_ROOTFS}/data.env.
| File /home/marekbelisko/.build/tmp/sysroots/raspberrypi0-wifi/imgdata/${IMAGE_ROOTFS}/data.env
doesn't exist.
I found similar usage (for boot directory in poky):
scripts/lib/wic/canned-wks/efi-bootdisk.wks.in:2:part /boot --source
rootfs --rootfs-dir=${IMAGE_ROOTFS}/boot --fstype=vfat --label boot
--active --align 1024 --use-uuid --overhead-factor 1.0
Am I doing something wrong here or any ideas? Thanks.
BR,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
More information about the yocto
mailing list