How to multi load modules?

Post here if you are a new Porteus member and you're looking for some help.
benjibasson
Samurai
Samurai
Posts: 182
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

How to multi load modules?

Post#1 by benjibasson » 08 Sep 2024, 19:15

Hi I would like to load many amounth optional modules for exemple 999* and vlc I run once over 10 sessions
so I edit grub by pressing e, do load=999;vlc
infortunaly when I validate by pressing f10, it say cash 'unknow command: vlc, press enter to boot' althought on cheatcode it is printed 'load=tatatata;totototo;norbert'
unfortunaly it dosn't assume my 'e' editions since I got

Code: Select all

guest@porteus:~$ cat /proc/cmdline
quiet BOOT_IMAGE=/porteus64bit_v501/boot/syslinux/vmlinuz from=/dev/sda3/porteus64bit_v501 load=999
instead of

Code: Select all

guest@porteus:~$ cat /proc/cmdline
quiet BOOT_IMAGE=/porteus64bit_v501/boot/syslinux/vmlinuz from=/dev/sda3/porteus64bit_v501 load=999;vlc
how to load during boot every 999 and vlc-3.0.17.3-x86_64-3salix15.0.xzm please
is it available on grub2?

Cheers

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

How to multi load modules?

Post#2 by beny » 08 Sep 2024, 20:16

i think you have to use activate to show the modules to the system, try to use activate and the full path of the "optional"directory module,well maybe don't work try it,i have seen the cheatcode load so activate don't work....

User avatar
Ed_P
Contributor
Contributor
Posts: 8575
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to multi load modules?

Post#3 by Ed_P » 08 Sep 2024, 23:53

An alternate approach is what I use benji.

Code: Select all

extramod=$linux_folder/Modules   noload=kde;jinn;lxqt;xfce;lxde;mate;open;dat.xzm;mychanges
This is for my bootparms on the grub2 linux /boot/syslinux/vmlinuz line.
extramod= points to a folder on my harddrive which has many xzm modules and I exclude the ones I don't want to load and the ones I don't exclude load, just like the base modules. No manual activation needed.

Grub2 editing sometimes screws up my changes also. Not sure why. Sometimes they work, sometimes they don't. :hmmm:
This is a note in one of my Grub2 menus.

Code: Select all

     # https://www.gnu.org/software/grub/manual/grub/grub.html#normal
     set Editnote="If you edit the iso name add normal to the end of the menu."
     set iso="/ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64-240804.iso"

benjibasson
Samurai
Samurai
Posts: 182
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

How to multi load modules?

Post#4 by benjibasson » 09 Sep 2024, 15:37

It doesn't work for me. What did I wrong from this movie?
https://transfert.free.fr/vxcX1R9

beny
Full of knowledge
Full of knowledge
Posts: 2194
Joined: 02 Jan 2011, 11:33
Location: italy

How to multi load modules?

Post#5 by beny » 09 Sep 2024, 22:11

hi,i have seen that load cheatcode work on append line on porteus.conf,i have load a new version of qt6 package on optional directory,like this load=qt6-base-6.7.2-2-x86_64.xzm,you can load a lot of packages with a comma to divide, or make a huge .xzm and load it.

User avatar
Ed_P
Contributor
Contributor
Posts: 8575
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

How to multi load modules?

Post#6 by Ed_P » 09 Sep 2024, 22:32

beny wrote:
09 Sep 2024, 22:11
you can load a lot of packages with a comma to divide,
Worth a try but the http://www.porteus.org/component/conten ... -them.html page shows:

Code: Select all

load=module
load=module[1];module[n]

... Load optional modules from /optional/ directory on the booting
media. Additional modules can be listed, separated
by semicolons, without spaces.
semicolons not commas.

Added in 11 minutes 31 seconds:
benjibasson wrote:
09 Sep 2024, 15:37
It doesn't work for me. What did I wrong from this movie?
Not a Porteus error, a Grub2 error. Try putting the load= files in quotes.

Code: Select all

load="999;vlc" 

Also try dropping some of the boot parameters, login=guest is the default and I'm sure others are also, no need to specify them.

Another option, create a menu with the vlc in it so you don't have to edit it.

Post Reply