WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: copy2fs flag aka copy2fs.flg $SRC/copy2fs.flg  (Read 2131 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 642
  • ~.~
copy2fs flag aka copy2fs.flg $SRC/copy2fs.flg
« on: April 25, 2019, 06:16:49 AM »

looking around a bit for info about copy2fs.flg ( as it was mentioned in another topic )

and have found

https://github.com/search?q=user%3Atinycorelinux+copy2fs&type=Commits

https://github.com/tinycorelinux/Core-scripts/search?q=copy2fs&unscoped_q=copy2fs

https://github.com/tinycorelinux/Core-scripts/blob/30bba463429128b3fcfad37abee657709bd867ef/etc/init.d/tc-config#L316
Code: [Select]
[ -f $SRC/copy2fs.flg ] && CPTOFS=1
https://github.com/tinycorelinux/corebook/commit/00d93a9098c83c4331d820cb03159f2ec4195760
Quote
create an empty file called *copy2fs.flg* in the *cde* directory.

http://wiki.tinycorelinux.net/?do=search&id=copy2fs&button=
Quote
There is also an option "Check to optionally set copy2fs.flg if using outside initrd apps". This option creates the copy2fs.flg which will cause the extensions to be copied to memory at bootup which will

and tinycorelinux.net/ fqa ect , didnt turn up much
i was expecting to find a kernel param / boot option! in the fqa

are any better source than "Core-scripts" ?

or can any one offer any other relevant info ??

thanks! 



Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: copy2fs flag aka copy2fs.flg $SRC/copy2fs.flg
« Reply #1 on: April 25, 2019, 07:01:22 AM »
There are two flags that can be set in your tce folder:

* copy2fs.lst - a list of extensions to be installed to the root file system in ram
* copy2fs.flg - causes all extensions to be installed to the root file system in ram

both can be set from the apps gui - apps/installation options

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: copy2fs flag aka copy2fs.flg $SRC/copy2fs.flg
« Reply #2 on: April 25, 2019, 10:22:24 AM »
Hi, mocore!

   Are you asking about  boot option acting like copy2fs.flg? To set it manually during boot process from the boot menu?
I can agree with you, such an option will be sometimes usefull. But as i can see in "/etc/init.d/tc-install", "/usr/bin/tce-setup" and "/usr/bin/tce-load" there are no such option now.
   You can modify scripts and make custom boot option, and then reassemble rootfs.gz. Working with rootfs.gz is wonderfully described in the wonderfull Corebook (really great one!). If I am not mistaken, in the TinyCore Wiki there were something about custom bootcodes.
   Frankly speaking, such modification will be interesting for me too, so if you will have some results, share them please. Or maybe i will be able to help you.
Wish you success!

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: copy2fs flag aka copy2fs.flg $SRC/copy2fs.flg
« Reply #3 on: April 25, 2019, 10:54:27 AM »
About custom bootcodes there is the chapter in Corebook. Great one!
« Last Edit: April 25, 2019, 11:03:03 AM by jazzbiker »