I want to load some of the extensions to ram on startup, piCore 7.0.
Tried using the "copy2fs.flg" in the "tce" folder, it seems to work fine (though one of my handmade extensions didn't load correctly, will figure out why). Then I switched to "copy2fs.lst" with only some extensions listed in it (two handmade and a couple from repository). This doesn't work. The applications are listed in the file in the following way:
mine.tcz
java_embedded_1.8.0_71.tcz
mc.tcz
midori.tcz
The file is in the tce folder.
Looking at the relevant portion of "tc-config" script:
while read NAME OPT
do
[ $CPTOFS ] || grep -q $NAME $SRC/copy2fs.lst 2>/dev/null && FL="-c" || FL=''
[ $FL ] || MNT=1
su "$USER" -c "/usr/bin/$LOADER $SRC/$PKG/$NAME"
[ "$SRC" == "$RAM" ] && [ "$FL" == "-c" ] && rm $RAM/$PKG/$NAME
done < $SRC/$LIST
The only thing I could see here is that in case the extension is in the list, it is being removed from "/tmp/tce/optional"... but this folder is always empty in my case anyhow.
Can anyone suggest what I'm doing wrong and how this thing works? I haven't seen many posts on "copy2fs" at all.
Thanks!