[Solved] update-cache [WAS:How do I generate modules after ]

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
claude
Black ninja
Black ninja
Posts: 80
Joined: 02 Jan 2013, 15:16
Distribution: XFCE 3.1
Location: California

[Solved] update-cache [WAS:How do I generate modules after ]

Post#1 by claude » 22 Jan 2013, 17:52

@fanthom
as we have seen, if I build the basic filesystem back into a single xzm file with dir2xzm, the resulting large xzm module is very slow to boot and heavy on the limited resource of an older machine.
Porteus modules from /base folder contain updated caches (gtk, pango, mime, etc..) so updating of these can be skipped resulting in a faster boot.
please have a look on /opt/porteus-scripts/xorg/update-cache script which is run when other than /base modules are discovered by booting scripts.
if you are able to add all caches to your custom modules then you could place them in /base folder and name as 009x- so it would be treated as native porteus module and not external one.
this action should make booting nearly as fast as it's with stock porteus modules only.

I really would like to do this, as it would speed up things greatly at boot up on my older hardware.
I've looked at the /opt/porteus-scripts/xorg/update-cache script and understand what it is doing.....
but I'm a bit confused as to what specific steps to take to add all caches to my custom
modules so that they can be placed in base with name 009x-.... Could you please explain
the steps to go through to do this? Thanks...
Last edited by claude on 24 Jan 2013, 14:18, edited 1 time in total.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: update-cache [WAS:How do I generate modules after mod...

Post#2 by fanthom » 23 Jan 2013, 13:15

@claude
please run /opt/porteus-scripts/xorg/update-cache then copy following files to 0099-caches.xzm module:

Code: Select all

/etc/gtk-2.0/x86_64-slackware-linux/gtk.immodules
/etc/ld.so.cache
/etc/pango/x86_64-slackware-linux/pango.modules
/usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
/usr/lib64/gio/modules/giomodule.cache
/usr/share/applications/mimeinfo.cache
/usr/share/glib-2.0/schemas/gschemas.compiled
/usr/share/mime/*
/var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-le64.cache-3
/var/cache/ldconfig/aux-cache
for 32bit arch the list will be slightly different.
by '/usr/share/mime/*' i mean everything so please copy whole directory.

should be ok :wink:
Please add [Solved] to your thread title if the solution was found.

claude
Black ninja
Black ninja
Posts: 80
Joined: 02 Jan 2013, 15:16
Distribution: XFCE 3.1
Location: California

Re: update-cache [WAS:How do I generate modules after mod...

Post#3 by claude » 24 Jan 2013, 05:06

@fanthom

Thanks a lot! :D Could you please also post the list for 32bit arch? (that's what I use, for both full Porteus and Xfce.)
This is *very* useful information for Porteus users....perhaps it should be made available in the How-To section.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4548
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: update-cache [WAS:How do I generate modules after mod...

Post#4 by fanthom » 24 Jan 2013, 09:52

@claude
list for 32bits is the same, please replace every instance of 'lib64' with 'lib' and 'x86_64' with 'i486'.
This is *very* useful information for Porteus users....perhaps it should be made available in the How-To section.
i wouldn't do that cause users may start renaming their all modules with 00* (for faster boot) and that would certainly break some things at some point.
let's consider this as a 'secret porteus knowledge' :wink:

anyway - i'll be looking at update-cache script and try to optimize it to maximum so delays wont be that much of hassle.
will try to do that before rc2.

Tom
Please add [Solved] to your thread title if the solution was found.

claude
Black ninja
Black ninja
Posts: 80
Joined: 02 Jan 2013, 15:16
Distribution: XFCE 3.1
Location: California

Re: update-cache [WAS:How do I generate modules after mod...

Post#5 by claude » 24 Jan 2013, 14:11

@fanthom

You're right...wise thinking, it's best kept in the realm of SPK :wink:
Thanks so much for sharing it here though, it helps me big way! :D

Post Reply