Observed this syntax error while booting core-image-minimal on qemumips: hwclock: can't open '/dev/misc/rtc': No such file or directory /etc/init.d/rc: /etc/rcS.d/S55bootmisc.sh: line 73: syntax error: bad substitution Build Configuration: BB_VERSION = "1.23.1" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "mips-poky-linux" MACHINE = "qemumips" DISTRO = "poky" DISTRO_VERSION = "1.6+snapshot-20140722" TUNE_FEATURES = "o32 bigendian fpu-hard mips32" TARGET_FPU = "" Introduced by the commit 00017b4dd895afff9ff613d511cea373f13a96ea # checkbashisms ../meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh possible bashism in ../meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh line 73 (${foo:3[:1]}): date -u ${TIMESTAMP:4:8}${TIMESTAMP:0:4}.${TIMESTAMP:(-2)}
This also occurs under x86 QEMU. The issue is indeed the bashism pointed out by Maxin B. John. I have a patch and have tested that it fixes the issue.
Created attachment 2051 [details] Patch for proposed fix.
This works fine for me. Thanks for fixing it! Tested-by: Maxin B. John <maxin.john@enea.com>
Fix upstreamed. https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7c11b327a1cf116ccfd3df05e84845dbcb3d3fd8