WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Using httplist or tftplist to load Xlibs, deletes system folders in TC 5.4?  (Read 2424 times)

Offline zatman

  • Newbie
  • *
  • Posts: 18
​Hello Tiny Core users and programmers,

Before I get to the issue, please review another issue (use link below).

http://forum.tinycorelinux.net/index.php/topic,16036.msg97136.html#msg97136


From that prior issue, I am also getting the following:

mkdir: can't create directory '/home/tc/.local/': Permission denied


I have reviewed other users that had similar past issues (in this forum) and none of the help provided in those, have helped on my case.  But I have some new information, which I hope will be helpful in providing a solution from the Tiny Core team.

My setup is as follows.

BASE IP 192.100.99.x  (The Box number is also the last octet of the address.  For example Box-200 ip = 192.100.99.200)
Box-200 (laptop / client)
Box-204 (laptop / client)
Box-228 (desktop / client)

Box-164 (Web server - Busybox HTTPD)
Box-165 (Web/TFTP/PXE server - NGINX) & (TFTPD) & (DHCP SERVER via udhcpd)

All of these boxes are on the same LAN.
I typically load my boxes using PXE - but most of my testing has been using a Flash Drive (Syslinux) - All are set to use HTTPLIST.

One test used boot code below.

initrd=boot/5-4/core.gz quiet waitusb=6 text pause host=B0X-228 httplist=192.100.99.164:/onboot-stnd1.lst BOOT_IMAGE=boot/5-4/vmlinuz

onboot-stnd1.lst  File has 2 programs listed below (have another onboot.lst file with other files - but this current lst is only for testing)
aterm.tcz
Xlibs.tcz

My goal is to load a GUI desktop (FLWM) - and will use my other onboot.lst file to get the desktop to load.

I am not using a customized core - This is the standard 5.4 core.gz

Oh, and the reason there is an aterm.tcz in my lst file, is because its needed per "Juanito", when TC 5.0 was released, he stated "Finally, note that users will need to download a terminal extension (aterm or others) and load it prior to starting Xvesa, Xfbdev or Xorg-7.7"

When I boot my system with this boot code:

initrd=boot/5-4/core.gz quiet waitusb=6 text pause host=B0X-228 httplist=192.100.99.164:/onboot-stnd1.lst BOOT_IMAGE=boot/5-4/vmlinuz

It loads Tiny Core 5.4 and my onboot-stnd1.lst with the 2 programs.  Since my boot code has a pause, I have to hit enter.  Which I get the normal Tiny Core welcome message (about Core is Distributed with.....), but I also get...

mkdir: can't create directory '/home/tc/.local/': Permission denied


Then get a prompt.

From here, I did the following commands.

ls -la

total 24
drwxr-xr-x    2 root     root           160 Nov  9 16:29 ./
drwxrwxr-x    3 root     staff           60 Nov  9 16:29 ../
-rwxr-xr-x    1 tc       root           275 Nov  9 16:29 .Xdefaults
-rw-rw-r--    1 tc       staff          352 Nov  9 16:34 .ash_history
-rw-r--r--    1 tc       staff          446 Sep 10 12:31 .ashrc
-rw-r--r--    1 tc       staff          920 Sep 10 12:31 .profile
-rwxr-xr-x    1 tc       root           103 Nov  9 16:29 .setbackground
-rwxr-xr-x    1 tc       root           450 Nov  9 16:29 .xsession

ls -la /tc

total 0
drwxrwxr-x    3 root     staff           60 Nov  9 16:29 ./
drwxr-sr-x   17 root     staff          380 Sep 10 12:44 ../
drwxr-xr-x    2 root     root           160 Nov  9 16:29 tc/

mount

rootfs on / type rootfs (rw,relatime,size=1039704k,nr_inodes=379896)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/loop0 on /tmp/tcloop/aterm type squashfs (ro,relatime)
/dev/loop1 on /tmp/tcloop/Xlibs type squashfs (ro,relatime)


If I reboot this computer (sudo reboot), and change my boot code string to the following.

initrd=boot/5-4/core.gz quiet waitusb=6 text pause host=B0X-228 BOOT_IMAGE=boot/5-4/vmlinuz

Do not get the "mkdir" error, but repeat the commands I did prior on this newly loaded system.

ls -la

total 16
drwxr-s---    4 tc       staff          160 Nov 10 11:16 ./
drwxrwxr-x    3 root     staff           60 Nov 10 11:15 ../
drwxr-s---    2 tc       staff           40 Nov 10 11:15 .X.d/
-rw-rw-r--    1 tc       staff           99 Nov 10 11:16 .ash_history
-rw-r--r--    1 tc       staff          446 Sep 10 12:31 .ashrc
drwxr-s---    3 tc       staff           60 Nov 10 11:15 .local/
-rw-r--r--    1 tc       staff          920 Sep 10 12:31 .profile

mount

rootfs on / type rootfs (rw,relatime,size=1039704k,nr_inodes=379929)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)


By loading the HTTPLIST with Xlibs, it had removed the following folders (or maybe the Tiny Core system had not yet created them).  Maybe the timing of the httplist being applied in TC 5.4, is too early?

drwxr-s---    2 tc       staff           40 Nov 10 11:15 .X.d/
drwxr-s---    3 tc       staff           60 Nov 10 11:15 .local/

It also changed the tc folder permissions to ROOT: ROOT

What else might this be changing/destroying?

If I change my boot code to use another web server - httplist=192.100.99.165:/onboot-stnd1.lst.  I still have the issue.

If I use PXE, with HTTPLIST, still have the same issue.

I tried this on Box-200 and Box-204 and they repeat the issue.

If I change my lst file, to only have Xlibs, it still has the same issue.

I do not get this same problem, when using TC 4.7.2.  I even went back further, and tried 3.8.4, and it also does not have this issue.

Could some other users also try using TC 5.4 and httplist (or tftplist) which only has Xlibs listed (and boot code text), to see if they also have the same problem (meaning get the "mkdir" error, missing folders and tc folder set with root:root)?

I also loaded another system (with no httplist) and then did the following.

tce-load -iw Xlibs

It loaded all the dependencies and Xlibs.

Then rechecked the folders, and both folders where still there after (".X.d" & ".local"), and did not get the "mkdir" error.  So maybe its a timing issue, if the tce-load happens 30-60 seconds later, then if the httplist were ran...

I then did a 'mount' command and outputted that to a text file (or onboot.lst - and tftp the file to my tftp server) .

Then loaded another system, using (httplist) onboot.lst which was created from the prior mount command - which was edited to only list the program names.  But still had the issue.

I feel this is a bug and hope to see a fix in the near future.

Thank you.