There's another issue in /usr/bin/tce-bootload, it's more evident with the showapps bootcode enabled but there without it also I believe. Issue was first described over a year ago in this thread:
http://forum.tinycorelinux.net/index.php/topic,20546.msg128098.html#msg128098The issue is when using the copy2fs.flg this line in tce-bootload doesn't have the desired affect:
os.system('sudo busybox.suid rm -r -f ' + root + '/tmp/tcloop/' + p[:-4])
I believe this line is supposed to completely remove the tcz directory for each extension in /tmp/tcloop/ but in fact they are all left behind, empty, but still present.
With the showapps bootcode turned on and the copy2fs.flg set, this is what you see:
Mounting extensions
-------------------
alsa-modules-4.9.22-piCore alsa-utils alsa bzip2-lib ca-certificates firmware-rpi3-wireless flac gamin gcc_libs glib2 libasound libedit libelf libgcrypt libgpg-error libiw libmad libnl libogg libssh2 libvorbis mc ncurses openssh openssl pcre readline wifi wireless-4.9.22-piCore wireless_tools wpa_supplicant Warning: Comparison between bytes and str
Warning: Comparison between bytes and str
Warning: Comparison between bytes and str
Warning: Comparison between bytes and str
Adding extensions to file system
--------------------------------
alsa-modules-4.9.22-piCore rm: applet not found
alsa-utils rm: applet not found
alsa rm: applet not found
bzip2-lib rm: applet not found
ca-certificates rm: applet not found
firmware-rpi3-wireless rm: applet not found
flac rm: applet not found
gamin rm: applet not found
gcc_libs rm: applet not found
glib2 rm: applet not found
libasound rm: applet not found
libedit rm: applet not found
libelf rm: applet not found
libgcrypt rm: applet not found
libgpg-error rm: applet not found
libiw rm: applet not found
libmad rm: applet not found
libnl rm: applet not found
libogg rm: applet not found
libssh2 rm: applet not found
libvorbis rm: applet not found
mc rm: applet not found
ncurses rm: applet not found
openssh rm: applet not found
openssl rm: applet not found
pcre rm: applet not found
readline rm: applet not found
wifi rm: applet not found
wireless-4.9.22-piCore rm: applet not found
wireless_tools rm: applet not found
wpa_supplicant rm: applet not found
Warning: Comparison between bytes and str
Warning: Comparison between bytes and str
Warning: Comparison between bytes and str
Warning: Comparison between bytes and str
Note all the "applet not found" messages associated with the rm command (and the fact that the directory that's supposed to get removed, doesn't).
It's not immediately obvious to me why, looking at the script, but, with showapps turned off and copy2fs.flg still set, you don't see all the errors, but the rm command still must not be working as intended because the extension directories are still present under /tmp/tcloop/.
As the poster noted in the link above, it has something to do with the "busybox.suid" syntax. If you manually run the script line it produces the same error:
tc@squeezepi:/tmp/tcloop$ sudo busybox.suid rm -r -f /tmp/tcloop/alsa-utils
rm: applet not found
But remove the .suid suffix and it works as expected and the directory is removed.