Page 1 of 1

Grub4DOS Commands?

Posted: Fri Mar 05, 2021 7:23 pm
by taersh

Hi.

I think, Grub4DOS is similar to -or based on- GRUB boot loader. Is it possible to add commands to the boot prompt of Grub4DOS, like:

GRUB_CMDLINE_LINUX="threadirqs"
or
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_idle.max_cstate=0 processor.max_cstate=1 threadirqs"

If so, where is a list of such boot-loader-commands etc.pp.?

Thanks.


Re: Grub4DOS Commands?

Posted: Fri Mar 05, 2021 10:30 pm
by Adam Li

Hi taersh

I am surprised - I suppose you know what I will give you, but by all means ...
1. Grub For Dos Info
2. Grub4dos Internal variables, memory areas, advanced features and function calls
3. Folder "docs" in archives

Good luck!
Adam Li


Re: Grub4DOS Commands?

Posted: Fri Mar 05, 2021 10:58 pm
by Keef

The commands go on the 'kernel' line in grub4dos.
These are the kernel command-line parameters: https://www.kernel.org/doc/html/latest/ ... eters.html.
They would be the same whatever bootloader is used.


Re: Grub4DOS Commands?

Posted: Fri Mar 05, 2021 11:14 pm
by wiak
taersh wrote: Fri Mar 05, 2021 7:23 pm

If so, where is a list of such boot-loader-commands etc.pp.?

As Keef relates, some are commands understood by the kernel itself and listed at link Keef gives above.

Others (such as psubdir=...) are distro-specific and specified via the distro's initrd/init shell script code. The distro has to provide a list of these ones in its documentation. I don't know off-hand where Puppy publishes its list but no doubt someone will post the link.

grub and similar do not themselves produce these arguments, they just pass them on the kernel ones for use by the kernel, and the non-kernel ones for use by the initrd/init.


Re: Grub4DOS Commands?

Posted: Sat Mar 06, 2021 2:17 am
by puddlemoon

I have recently buiIt a low latency kernel and have been adding "threadirqs" to the kernel line in grub4dos.
With my debiandog installs and you can clearly see the rtirq-init do it's job in the verbose boot up where it was not before, so it is indeed "getting the message" from grub4dos


Re: Grub4DOS Commands?

Posted: Sat Mar 06, 2021 8:43 am
by taersh

and have been adding "threadirqs" to the kernel line in grub4dos.

@puddlemoon
Please, would you show me exactly how did you add this to the kernel line?
Thanks!


Re: Grub4DOS Commands?

Posted: Sat Mar 06, 2021 11:01 am
by puddlemoon

@taersh

Here is my current menu.lst

Code: Select all

# menu.lst produced by grub4dosconfig-v1.9.3
color cyan/blue black/cyan cyan/black cyan/black
splashimage=/oscar2.xpm
timeout 7
default 1

# Frugal installed Puppy

  
  title jackalpup
  find --set-root uuid () 8f778ba1-9d32-4947-849a-e2c987592efe
  kernel /jackalpup/vmlinuz  pmedia=atahd psubdir=/jackalpup pfix=fsck threadirqs
  initrd /jackalpup/initrd.gz
  

# bullseye

title bullseye - changes to  savefolder 
 find --set-root uuid () 8f778ba1-9d32-4947-849a-e2c987592efe
 kernel /bullseye/live/vmlinuz1 from=/bullseye noauto changes=/bullseye threadirqs
 initrd /bullseye/live/initrd1.xz 
 
# sid

title sid - changes to  savefolder 
 find --set-root uuid () 8f778ba1-9d32-4947-849a-e2c987592efe
 kernel /sid/live/vmlinuz1 from=/sid noauto changes=/sid threadirqs
 initrd /sid/live/initrd1.xz



# fossa
  
title jackal - changes to  savefolder 
 find --set-root uuid () 8f778ba1-9d32-4947-849a-e2c987592efe
 kernel /jackal/casper/vmlinuz from=/jackal noauto changes=/jackal threadirqs
 initrd /jackal/casper/initrd1.xz


title Puppy devuanpup 9.6.0 (sda2/devuanpup)
  uuid 8f778ba1-9d32-4947-849a-e2c987592efe
  kernel /devuanpup/vmlinuz   psubdir=devuanpup pmedia=atahd pfix=fsck
  initrd /devuanpup/initrd.gz
 
# Full installed Linux

title Ventoy
  map (hd1) (hd0)
map (hd0) (hd1)
  map --hook
  chainloader (hd0)+1

# Advanced Menu
title Advanced menu
  configfile /menu-advanced.lst
  commandline