WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Core 5.2 PXE Boot with tftplist issue  (Read 2905 times)

Offline yvesd@exer.fr

  • Newbie
  • *
  • Posts: 5
Core 5.2 PXE Boot with tftplist issue
« on: March 11, 2014, 10:22:06 AM »
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



Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Core 5.2 PXE Boot with tftplist issue
« Reply #1 on: March 11, 2014, 10:47:39 AM »
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/

Offline yvesd@exer.fr

  • Newbie
  • *
  • Posts: 5
Re: Core 5.2 PXE Boot with tftplist issue
« Reply #2 on: March 12, 2014, 02: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/



Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Core 5.2 PXE Boot with tftplist issue
« Reply #3 on: March 12, 2014, 06: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?

Offline yvesd@exer.fr

  • Newbie
  • *
  • Posts: 5
Re: Core 5.2 PXE Boot with tftplist issue
« Reply #4 on: March 13, 2014, 03: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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Core 5.2 PXE Boot with tftplist issue
« Reply #5 on: March 13, 2014, 05: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.
« Last Edit: March 14, 2014, 02:25:05 PM by gerald_clark »