WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: pxe boot with httplist, almot working except /home/tc gets root:root permissions  (Read 1466 times)

Offline runningopenloop

  • Newbie
  • *
  • Posts: 9
Hi,

I've nearly got pxe booting working with the "standard" TinyCorePure64-13.1.iso release into xwindows.

  • I uncompressed the corepure64.gz and updated /opt/tcemirror to point to my local webserver.
  • I stuck all the needed files onto webserver from the iso's cde/optional directory.
  • I'm using pxelinux.cfg file with
  • KERNEL tinycorepure64-13.1/vmlinuz64 showapps host=mybox httplist=192.168.1.100:/tinycorepure64-13.1/onboot_basicx.lst vga=791
  • INITRD tinycorepure64-13.1/corepure64_use_local_server.gz

The trouble is that when I include the Xlibs.tcz and/or wbar.tcz, then my /home/tc gets root permissions and then things fail.

For example on boot may get...
Code: [Select]
mkdir: can't create directory 'home/tc/.local/': Permission denied
mv: can't rename '/tmp/.xsession': Permission denied.

However if I remove Xlibs.tcz and wbar.tcz from onboot_basicx.lst, then install them using tce-load, then I can run startx and everything works fine.
I see there are some tce.installed scripts for Xlibs and wbar, but I haven't figured out yet how these may be causing the problem.  This is my suspicion.

Here's what my directory looks like in this working case:
Code: [Select]
drwxr-s---    5 tc       staff          280 Dec 31 09:18 ./
drwxrwxr-x    3 root     staff           60 Dec 31 09:17 ../
drwxr-s---    2 tc       staff           40 Dec 31 09:17 .X.d/
-rwxr-xr-x    1 tc       staff          275 Dec 31 09:18 .Xdefaults
-rw-rw-r--    1 tc       staff           99 Dec 31 09:18 .ash_history
-rw-r--r--    1 tc       staff          424 Dec 31 07:32 .ashrc
drwxr-s---    3 tc       staff           60 Dec 31 09:17 .local/
-rw-r--r--    1 tc       staff          920 Dec 31 07:32 .profile
-rwxr-xr-x    1 tc       staff          103 Dec 31 09:18 .setbackground
lrwxrwxrwx    1 root     staff           20 Dec 31 09:18 .wbar -> /usr/local/tce.icons
drwxr-sr-x    3 tc       staff           60 Dec 31 09:18 .wmx/
-rwxr-xr-x    1 tc       staff          575 Dec 31 09:18 .xsession



Here's after a failing case where I include both Xlibs and wbar in the .lst file used by httplist
Code: [Select]
drwxr-xr-x    2 root     root           180 Dec 31 09:43 ./
drwxrwxr-x    3 root     staff           60 Dec 31 09:43 ../
-rwxr-xr-x    1 tc       root           275 Dec 31 09:43 .Xdefaults
-rw-rw-r--    1 tc       staff          140 Dec 31 09:44 .ash_history
-rw-r--r--    1 tc       staff          424 Dec 31 07:32 .ashrc
-rw-r--r--    1 tc       staff          920 Dec 31 07:32 .profile
-rwxr-xr-x    1 tc       root           103 Dec 31 09:43 .setbackground
lrwxrwxrwx    1 root     root            20 Dec 31 09:43 .wbar -> /usr/local/tce.icons
-rwxr-xr-x    1 tc       root           575 Dec 31 09:43 .xsession

Any ideas?  Thanks for any help.

Note I used tce-audit builddb to confirm the .lst file was in the right order for dependencies.  At least I think that's what it does... otoh, I have tried that list both forward and reverse and it doesn't seem to matter.

---

My goal was to use this httplist because I understand http would be faster that tftp.  However I did also run into trouble when I attempted to create a /tce directory in a custom corepure64.gz.  Permission issues again with the /tce directory as I recall.

73,
Timothy

    [EDIT]: Added code tags.  Rich
« Last Edit: December 31, 2022, 10:45:22 AM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
IIRC httplist and tftplist were intended to load early drivers, as they happen before the home dir is set up they won't work well for many normal extensions. NFS was meant for the full tce dir. If you prefer http or tftp, you can loop over them in bootsync.sh, that happens after home setup.
The only barriers that can stop you are the ones you create yourself.

Offline runningopenloop

  • Newbie
  • *
  • Posts: 9
Hey thanks.  With this update I was able to get things working.

I was trying to minimize my effort by using the HTTP server, but I ended up dealing with the NFS setup and things are booting.

73,
Timothy