WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Re-run onboot.lst after tcedir is changed  (Read 1950 times)

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 765
Re-run onboot.lst after tcedir is changed
« on: November 08, 2015, 12:22:47 AM »
You guys know the scripts a lot better than I remember them, so I'm hoping to prevent a number of hours digging through sources to pull this one off if I can.

boot code tce=some_path is assumed or the default is used; it may be empty or have a few TCZ's to load during boot.
Once bootlocal fires up, the link to tce is being changed to a new (dynamic) network share (/mnt/share/tce)
I'm going to hard-code my own script to read the new onboot.lst and tce-load anything found, but I was wondering if a function already existed in one of the many tc-* scripts to do just that?

Any pointers before I dig in?

Thanks guys!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Re-run onboot.lst after tcedir is changed
« Reply #1 on: November 08, 2015, 05:49:30 AM »
tce-setup is the one, but it's not designed to be run twice.
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Re-run onboot.lst after tcedir is changed
« Reply #2 on: November 08, 2015, 10:24:55 AM »
Use the nfsmount boot option. and load all your tcz from an nfs share.
http://wiki.tinycorelinux.net/wiki:netbooting#nfs_for_a_tce_directory

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 765
Re: Re-run onboot.lst after tcedir is changed
« Reply #3 on: November 08, 2015, 11:37:52 PM »
Thanks guys!  Figured it worth asking before building a second setup script.

@gerald: The NFS mount points are dynamically created by the machine itself (it scans the NFS root for matching MAC(s) and creates it if it's not found.)
Code: [Select]
nfsmount=192.168.x.x:/nfs/image/mac_address would be the initial mount pointHowever, consider doing this with dozens of machines and you'd end up needing dozens of boot images/codes to accomplish the same.  Too much like work! :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Re-run onboot.lst after tcedir is changed
« Reply #4 on: November 09, 2015, 04:45:20 AM »
I'd use your line literally, and edit tc-config to replace mac_address before using it. No bootcodes, one image?
The only barriers that can stop you are the ones you create yourself.