WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Using "copy2fs.lst"  (Read 2659 times)

Offline fault-tolerant

  • Newbie
  • *
  • Posts: 19
Using "copy2fs.lst"
« 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!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Using "copy2fs.lst"
« Reply #1 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline fault-tolerant

  • Newbie
  • *
  • Posts: 19
Re: Using "copy2fs.lst"
« Reply #2 on: February 03, 2016, 04:06:25 AM »
Oh, right. Thanks for the quick response.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Using "copy2fs.lst"
« Reply #3 on: February 03, 2016, 04:09:43 AM »
Note added to release announcement.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."