Page 2 of 2

Re: Porteus.cfg - cheats

Posted: 11 Feb 2016, 11:19
by ztrapl
@donald
I just wanted to edit an item

Code: Select all

LABEL fresh
MENU LABEL Always Fresh
KERNEL vmlinuz
APPEND initrd=initrd.xz nomagic base_only norootcopy timezone=Europe/Prague volume=75% kmap=cz,us login=root
so in order to load the module changes.xzm in the optional.
I tried your settings and if I delete base_only so i will always load the modules folder.
Example:

Code: Select all

APPEND initrd=initrd.xz nomagic norootcopy noload=cpufreq;sensors load=changes timezone=Europe/Prague volume=75% kmap=cz,us login=root
I've added this to the start menu item:

Code: Select all

LABEL HDT
MENU LABEL Hardware Detection Tool
COM32 hdt.c32
TEXT HELP
    Hardware Detection Tool is a small
    application to verify accurate data
    on computer components
ENDTEXT
Perhaps someone will come in handy.
Download hdt.c32 : https://yadi.sk/d/Md0qpuTFof9GA
Homepage: http://www.hdt-project.org/

Re: Porteus.cfg - cheats

Posted: 11 Feb 2016, 11:41
by donald
I tried your settings and if I delete base_only so i will always load the modules folder.
you have to use the noload= cheatcode
add all modules you have in the modules folder to this cheatcode.
if you do so,they won't get loaded...
The Example loads the module in the base folder , don't load modules you have added to the noload= cheatcode and then, with the use of the load= cheatcode, loads the changes module

EDIT
Now i see:
APPEND initrd=initrd.xz nomagic norootcopy noload=cpufreq;sensors load=changes timezone=Europe/Prague volume=75% kmap=cz,us login=root
This is/was only an Example, not a ready to use line
You have to add your modules to the noload cheatcode, not mine.. :wink:

Re: Porteus.cfg - cheats

Posted: 11 Feb 2016, 14:26
by francois
@ztapl:
You can also use the extramod cheat code:

Code: Select all

extramod=/kde
This is where I put my kde desktop module and the changes module associated with it. In fact, I do the same for xfce.

Re: Porteus.cfg - cheats

Posted: 11 Feb 2016, 18:29
by Bogomips
donald wrote:you have to use the noload= cheatcode
add all modules you have in the modules folder to this cheatcode.
if you do so,they won't get loaded...
Thought had seen something that could come in useful (working in similar fashion to load):

Code: Select all

guest@porteus:~$ find /mnt/sda5/porteus/modules -name "*.xzm"
/mnt/sda5/porteus/modules/sudo-1.8.9p5-i486-1.xzm
So something like noload=eus/mod should do the trick, being sufficiently unique to differ from modules in base folder, as long as path to porteus not something like /deus/mods/porteus, in which case nothing will be loaded. :roll: . Uses egrep -v, and to be found in linuxrc. Fanthom was always telling me to see linuxrc, but never knew where linux rc was.