WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Plymouth splash, displaying message  (Read 8792 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Plymouth splash, displaying message
« Reply #15 on: June 25, 2015, 04:10:17 AM »
Is there a way to know which extensions provide these libraries in Tinycore

Yes, you can use the apps gui "provides" function to search the contents of extensions, but not the base.

Note that the files in almost all extensions will be under /usr/local whereas those in the base will be under /bin, /etc, /lib, /sbin or /usr.

Offline kalu

  • Newbie
  • *
  • Posts: 41
Re: Plymouth splash, displaying message
« Reply #16 on: June 25, 2015, 05:32:45 AM »
I'm still not sure how remastering with extensions as found in the wiki handles dependencies. The wiki doesn't say much about that. Could someone clear me up on that one. Does the onboot.lst have to include all the dependencies or not? Or does it even matter...? Thanks all..

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Plymouth splash, displaying message
« Reply #17 on: June 25, 2015, 06:28:12 AM »
Manual remastering requires yourself to take care about deps.

I'm not sure  /opt/tce/optional  is valid ; couldn't find it on a quick look at  tce-setup. I've once used  /tmp/builtin  successfully. But I don't see any downside of extracting extensions directly except of the need to fiddle around a little more. Also you'd have the deps available as soon as possible.

Hi misalf! Would that work? Many of the files extracted files are just symbolic links to a tcloop file (which as far as I understand only come into being when extensions are loaded with 'tce-load'). That's why I had thought that the proper way of doing it (putting the tcz files in /opt/tce/optional/ and having them listed in /opt/tce/onboot.lst) to be the way to go.

Yes, I have Xorg, fontconfig, nano, ntfs-3g and a bunch of deps inside initrd.
You just have to take care not to mess up permissions (f.e. /tmp has the sticky-bit set).
Code: [Select]
mkdir /tmp/my-initrd-dir
cd /tmp/my-initrd-dir
zcat /path/to/core.gz | sudo cpio -i -H newc -d
Code: [Select]
tce-load -i squashfs-tools
sudo unsquashfs -xattrs -force -dest /tmp/my-initrd-dir /etc/sysconfig/tcedir/optional/extension.tcz
You might have to create some symlinks manually, that would otherwise be created by the extensions start-up scripts (/usr/local/tce.installed/extension-name) which are not used if not inside their extensions. Same thing goes for other commands like you already did with  ldconfig  ;  tc-config  might be the place for these to go.
For extensions which do not contain a start-up script, you have to create an empty one because this is the way tce-load checks if the requested extension is already loaded (tce-load would create those with the same name as the .tcz without file name extension).

Code: [Select]
tce-load -i advcomp
cd /tmp/my-initrd-dir
sudo find | sudo cpio -o -H newc | gzip -9 > /tmp/my-initrd-dir.gz
advdef -z4 /tmp/my-initrd-dir.gz
Download a copy and keep it handy: Core book ;)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: Plymouth splash, displaying message
« Reply #18 on: June 25, 2015, 11:37:11 AM »
Hi kalu
Quote
Hi Rich! These are the results for /bin/plymouth and /sbin/plymouthd respectively:
Code: [Select]
        linux-gate.so.1 (0xb7785000)
        libply.so.2 => /lib/libply.so.2 (0xb776a000)
        libm.so.6 => /lib/libm.so.6 (0xb7733000)
        librt.so.1 => /lib/librt.so.1 (0xb772b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7727000)
        libc.so.6 => /lib/libc.so.6 (0xb7609000)
        /lib/ld-linux.so.2 (0xb7786000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb75f3000)
 
Code: [Select]
        linux-gate.so.1 (0xb7731000)
        libply.so.2 => /lib/libply.so.2 (0xb7716000)
        libply-splash-core.so.2 => /lib/libply-splash-core.so.2 (0xb7705000)
        libm.so.6 => /lib/libm.so.6 (0xb76ce000)
        librt.so.1 => /lib/librt.so.1 (0xb76c6000)
        libdl.so.2 => /lib/libdl.so.2 (0xb76c1000)
        libc.so.6 => /lib/libc.so.6 (0xb75a4000)
        /lib/ld-linux.so.2 (0xb7732000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb758e000)
Those are all standard libraries included in the base except for the two Plymouth libraries. Check the output of:
Code: [Select]
ldd /lib/libply.so.2
ldd /lib/libply-splash-core.so.2
to see their dependencies.