WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: load additional tcz-packages or several onboot.lst-sets as a bootcode?  (Read 5298 times)

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
the actual possibilities of tinycore are so flexible and extensible, i'm a real fan of it.

is this following idea a feature-request for the wishlist or is it already possible?

there is the onboot.lst, but sometimes additionally packages are needed only once, so these seldom used packages should not be loaded every boot.
can additionally tcz-packages be loaded just once per bootcode?
is it possible to load per bootcode several onboot.lst in one bootcode f.e. lst=onboot_std.lst, onboot_multimedia.lst, onboot_security.lst for loading these three sets std, multimedia and security alltogether?

thank you for your replies, hints and help.
« Last Edit: March 25, 2012, 04:38:08 PM by netnomad »

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
this possibility i saw only in porteus linux but not in tinycore
unfortunately in /usr/bin/tce-setup analyzes lst-bootcodes as follows
Code: [Select]
for i in `cat /proc/cmdline`; do
case $i in
tce=*) TCE=${i#*=} ;;
lst=*) TARGETLIST=${i#*=} ;;
esac
case $i in
cde) CDE=1 ;;
base) ONLYBASE=1 ;;
esac
done

[ -n "$TARGETLIST" ] || TARGETLIST="onboot.lst"
i.e. even if specify multiple lst-bootcodes but they will be processed only the last and only one lst-file
because the next operation with bootcode value this is read and load extensions in cycle from lst-file
« Last Edit: March 25, 2012, 05:37:58 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
This is something you can already do yourself. Make up your own boot code (LoadOnce=  for example) and parse
/proc/cmdline  for it as shown in the snippet above in your bootsync.sh or bootlocal.sh. Be sure to make up a
boot code that is not likely to exist.