Grub4DOS Commands?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
taersh
Posts: 951
Joined: Tue Jul 07, 2020 11:13 pm
Location: Germany
Has thanked: 53 times
Been thanked: 119 times

Grub4DOS Commands?

Post 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.

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

Adam Li
Posts: 72
Joined: Mon Aug 03, 2020 3:16 pm
Location: Warsaw / Poland
Has thanked: 12 times
Been thanked: 5 times

Re: Grub4DOS Commands?

Post 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

Laptop Core2 Duo CPU T6400 @ 2.00GHz / 3GB / GeForce 9300M GS
BionicPup32-8 19.03 / Precise 5.7.1 - Both Frugal Instal on HDD
Sorry for possible mistakes - English is not my mother tongue.

User avatar
Keef
Posts: 261
Joined: Tue Dec 03, 2019 8:05 pm
Has thanked: 3 times
Been thanked: 73 times

Re: Grub4DOS Commands?

Post 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.

User avatar
wiak
Posts: 4030
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 62 times
Been thanked: 1171 times
Contact:

Re: Grub4DOS Commands?

Post 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.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
puddlemoon
Posts: 189
Joined: Sun Sep 06, 2020 9:26 pm
Location: In between
Has thanked: 89 times
Been thanked: 64 times

Re: Grub4DOS Commands?

Post 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

User avatar
taersh
Posts: 951
Joined: Tue Jul 07, 2020 11:13 pm
Location: Germany
Has thanked: 53 times
Been thanked: 119 times

Re: Grub4DOS Commands?

Post 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!

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

User avatar
puddlemoon
Posts: 189
Joined: Sun Sep 06, 2020 9:26 pm
Location: In between
Has thanked: 89 times
Been thanked: 64 times

Re: Grub4DOS Commands?

Post 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
Post Reply

Return to “Users”