WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: onboot.lst help  (Read 5478 times)

Offline deeepdish

  • Newbie
  • *
  • Posts: 3
onboot.lst help
« on: March 15, 2017, 10:38:50 PM »
Hello,

I successfully booted Core 7.2 using PXE, however an unable to automatically install TCEs at boot via on boot.lst.

I've created my own cpio.gz with all modules listed under tmp/tce/optional ..  I have a tmp/tce/onboot.lst.

I've tried the following PXE config, with and without the APPEND line.   

I can load any module successfully by manually running tce-load -i (mod name)   .   eg.   tce-load -i bash

LABEL Media Installer
KERNEL images/tinycorelinux/7.2/x86/vmlinuz
INITRD images/tinycorelinux/7.2/x86/core.gz,images/tinycorelinux/7.2/x86/custom.gz
APPEND pretce showapps

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: onboot.lst help
« Reply #1 on: March 15, 2017, 10:43:42 PM »
Use an nfs tce directory as described in http://wiki.tinycorelinux.net/wiki:netbooting

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: onboot.lst help
« Reply #2 on: March 15, 2017, 11:01:15 PM »
You can also pass the name of a http server and file with the extensions to load via httplist on the boot cmdline. I use lighttpd for this.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: onboot.lst help
« Reply #3 on: March 15, 2017, 11:09:00 PM »
True, but httplist does not automatically resolve dependencies.  You have to include them all in the list.
NFS is cleaner because it works just like a hard drive installation.  You just install from the cloud to the nfs based tce directory using the standard "apps" or "tce" programs and they are there on the next boot.

Offline deeepdish

  • Newbie
  • *
  • Posts: 3
Re: onboot.lst help
« Reply #4 on: March 16, 2017, 06:02:16 AM »
Doesn't NFS require the nfs-utils package?   I'm using the 11MB core.  I'm trying to keep things simple and contained..    Given chain loading INITRDs is possible using pxelinux ( and it works  - e.g. INITRD images/tinycorelinux/7.2/x86/core.gz,images/tinycorelinux/7.2/x86/custom.gz),  The part of the init scripts that doesn't seem to work is enumerating onboot.lst.   

Is there something I'm doing wong?   Docs state to structure the directory structure as tce/onboot.lst and tce/optional/(packages).

I had a look at the tc-config script and all I could see TCEDIR="/tmp/tce" and TCEOPT="/tmp/tce/optional".

Looks like the scrips access the mounted INITRD via /etc/sysconfig/tcedir -- all of which are accessible.    Just onboot.lst isn't loading at boot time.   

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: onboot.lst help
« Reply #5 on: March 16, 2017, 06:51:45 AM »
/tmp/tce is the default directory in RAM, but it's not checked at boot as it's assumed empty. The dir that is intended for this is /tmp/builtin.

/tmp/builtin/onboot.lst
/tmp/builtin/optional/...
The only barriers that can stop you are the ones you create yourself.

Offline deeepdish

  • Newbie
  • *
  • Posts: 3
Re: onboot.lst help
« Reply #6 on: March 16, 2017, 03:51:19 PM »
That worked!   thanks for your help!