SliTaz SliTaz Forum

You are not logged in.

#1 2019-08-03 21:18:30

guest_account
Member
Registered: 2011-11-27
Posts: 57

Understanding Slitaz isolinux.cfg

Got curiosity to understand how this works.

I could roughly see the first part definitions for the graphic menus, and second part are the boot options themselves.

So for example, the "gtkonly" mode has these options:

append linux /boot/bzImage initrd=/boot/rootfs4.gz,/boot/rootfs3.gz,/boot/rootfs2.gz rw root=/dev/null video=-32 autologin

The other options load even less rootfs files (don't need them?)

But the main top option, the default one normally used, is like this:

append ifmem 256M core 192M gtkonly 128M justx 48M base noram

Doesn't even start by loading the rootfs files

Core, gtkonly, justx, base and noram are all Slitaz "modes" (or isolinux labels), except for ifmem. There's also a memory value after each one except for last two.

What does it mean? That "slitaz" main option just loads all other "sub-modes" altogether? What's with the memory values?

And, when normally booting Slitaz, what's the difference between booting "slitaz" and booting "core"?

Offline

#2 2019-08-04 07:31:36

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Understanding Slitaz isolinux.cfg

Idea is: if your box has 256MB of RAM or more, then all the 4 parts extracted to the RAM. This maximal version called "core".

When less then 256MB but more or equal to 192MB - 3 parts loaded. It is " gtkonly".

And so on.

You may force the selection. For example you can have 2GB of RAM and boot "justx".

I think the difference between "slitaz" and "core" that "slitaz" is always RAM-size-detected version (one of "core", " gtkonly", etc.), when "core" is forced to maximal version.

Offline

#3 2019-08-04 09:17:48

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Understanding Slitaz isolinux.cfg

The ifmem applet of c32box.c32 ( module a la busybox see

http://cook.slitaz.org/index.cgi?stuff=syslinux/stuff/extra/md5sum.c )

is used as the following:

append ifmem 256M core 192M gtkonly 128M justx 48M base noram

means

case memory-size

if >= 256M run core label

else if >=192M run gtkonly label

else if >= 128M run justx label

else if >= 48M run base label

else goto run noram label

Offline

#4 2019-08-14 18:55:23

guest_account
Member
Registered: 2011-11-27
Posts: 57

Re: Understanding Slitaz isolinux.cfg

Thanks very much!

Now everything is clearer.

Sorry for late response.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]