Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: deeepdish on March 15, 2017, 07:38:50 PM

Title: onboot.lst help
Post by: deeepdish on March 15, 2017, 07: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
Title: Re: onboot.lst help
Post by: gerald_clark on March 15, 2017, 07:43:42 PM
Use an nfs tce directory as described in http://wiki.tinycorelinux.net/wiki:netbooting
Title: Re: onboot.lst help
Post by: andyj on March 15, 2017, 08: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.
Title: Re: onboot.lst help
Post by: gerald_clark on March 15, 2017, 08: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.
Title: Re: onboot.lst help
Post by: deeepdish on March 16, 2017, 03: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.   
Title: Re: onboot.lst help
Post by: curaga on March 16, 2017, 03: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/...
Title: Re: onboot.lst help
Post by: deeepdish on March 16, 2017, 12:51:19 PM
That worked!   thanks for your help!