When exec petalinux-package --wic
, it was shown like below;
ERROR: _exec_cmd: export PATH= [list of path] ;mkdosfs -n boot -i 0x15112932 -S 512 -C /tmp/tmp.lMBhBJBVJN/tmp.wic.crwinvli/rootfs_boot.1.vfat 2097152 returned '2' instead of 0
output: /bin/sh: 1: export: [list of path] bad variable name
ERROR: Failed to create wic image
Solution
Set /bin/sh
as bash
.
It is not setting of default shell.
Specific procedures
Exec below command. Dialog appeared then select “No”.
sudo dpkg-reconfigure dash
Check to set /bin/sh
to bash
with ls -l /bin/sh
.
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jul 4 14:46 /bin/sh -> bash