Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: yvesdh on March 11, 2014, 01:22:06 PM

Title: Core 5.2 PXE Boot with tftplist issue
Post by: yvesdh on March 11, 2014, 01:22:06 PM
If I boot Core 5.2 via PXE with "tftplist" option, it's impossible to install a package. When I run "tce-load", I get an error message "Permission denied". The directory /tmp/tce has incorrect owner and rights:

tc@box:~$ ls -l /tmp
total 4
.....
drwxrwxr-x    3 root     staff            60 Mar 11 16:54 tce/
drwxrwxr-x    3 root     staff            60 Mar 11 16:54 tceloop/

tc@box:~$ ls -l /tmp/tce
total 0
drwxr-xr-x    2 root     root            60 Mar 11 16:54 optional/

tc@box:~$ ls -l /tmp/tce/optional/
total 140
-rw-r--r--    1 root     root        143360 Mar 11 16:54 kmaps.tcz



If I run "chown -R tc.staff /tmp/tce", tce-load is working fine.

Yves


Title: Re: Core 5.2 PXE Boot with tftplist issue
Post by: gerald_clark on March 11, 2014, 01:47:39 PM
Works for me:
/dev/loop0: 0 /tmp/tce/optional/libtirpc.tcz
/dev/loop1: 0 /tmp/tce/optional/rpcbind.tcz
/dev/loop2: 0 /tmp/tce/optional/nfs-utils.tcz

drwxrwxr-x    3 root     staff           60 Mar 11 09:13 tce/
drwxr-xr-x    2 root     root           100 Mar 11 09:13 optional/
Title: Re: Core 5.2 PXE Boot with tftplist issue
Post by: yvesdh on March 12, 2014, 05:24:47 AM
tce-load run as "tc" user and needs write permission into /tmp/tce/optional directory...

When you start Core without "tftplist" boot option, /tmp/tce/optional  has the following attributes

drwxr-xr-x    2 tc     staff            60 Mar 11 16:54 optional/


Title: Re: Core 5.2 PXE Boot with tftplist issue
Post by: gerald_clark on March 12, 2014, 09:11:53 AM
OK, but why are you using tftplist if you can run tce-load and do not intend to have a persistent tce directory?
Title: Re: Core 5.2 PXE Boot with tftplist issue
Post by: yvesdh on March 13, 2014, 06:52:59 AM
First, I need kmaps for mapping french keyboard, and I have made a package with some specific functions and customization. The simple way to load these packages is via "tftplist". It was working fine with TC4.
Title: Re: Core 5.2 PXE Boot with tftplist issue
Post by: gerald_clark on March 13, 2014, 08:09:46 AM
I'm not sure what you are saying.
Are you saying tfttplist is not working, or that you can't run tce-load after tftplist has loaded its extensions?
As I showed you above tftplist is working. 
The normal use of tftplist is to setup the system to change tce to some persistent network storage.
I will submit a patch to correct the ownership and group of /tmp/tce/optional and update you here.
----------
Patch was accepted and will be in next release.