lang en ja

failed command - patalinux-package --wic

Published Last Update author
2024/07/04 2024/07/04 Shumpei Tanaka

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

Say thank you

If this post helps you, I'd be glad to get your support via the link below.
paypal.me Badge paypal.me Badge