Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: fault-tolerant on February 03, 2016, 03:59:14 AM

Title: Using "copy2fs.lst"
Post by: fault-tolerant on February 03, 2016, 03:59:14 AM
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:

Code: [Select]
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!
Title: Re: Using "copy2fs.lst"
Post by: bmarkus on February 03, 2016, 04:03:00 AM
copy2fs.lst is not implemented in piCore 7.0 only copy2fs.flg

It will be reintroduced in next release.
Title: Re: Using "copy2fs.lst"
Post by: fault-tolerant on February 03, 2016, 04:06:25 AM
Oh, right. Thanks for the quick response.
Title: Re: Using "copy2fs.lst"
Post by: bmarkus on February 03, 2016, 04:09:43 AM
Note added to release announcement.