Page 1 of 1

dmesg log boot msgs

Posted: 16 Jan 2024, 20:39
by Ed_P
I don't understand these two dmesgs. Why are they different?

Code: Select all

guest@porteus:~$ grep command /var/log/dmesg

[    0.023938] Kernel command line: quiet BOOT_IMAGE=(loop)/boot/syslinux/vmlinuz from=/ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64-231229.iso volume=33 reboot=cold extramod=/porteus5.0/Modules changes=EXIT:/porteus5.0/changes/50save.dat noload=kde;jinn;lxqt;xfce;lxde;mate;open;dat.xzm;mychanges;autonet;menu1

[    0.023996] Unknown kernel command line parameters "BOOT_IMAGE=(loop)/boot/syslinux/vmlinuz from=/ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64-231229.iso volume=33 extramod=/porteus5.0/Modules changes=EXIT:/porteus5.0/changes/50save.dat noload=kde;jinn;lxqt;xfce;lxde;mate;open;dat.xzm;mychanges;autonet;menu1", will be passed to user space.

guest@porteus:~$ 
The first line starts with "quiet" and has "reboot=cold". The second line doesn't and says Unknown kernel command.

These are my grub2 boot parameters:

Code: Select all

     set bootparms="volume=33 reboot=cold extramod=$linux_folder/Modules \
       changes=EXIT:$linux_folder/changes/50save.dat \
       noload=kde;jinn;lxqt;xfce;lxde;mate;open;dat.xzm;mychanges;autonet;menu1" # ;mychanges"
They contain the "reboot=code" but not the "quiet".



My whole grub2 boot menu:

Code: Select all

     set iso="/ISOs/Porteus/Porteus-CINNAMON-v5.01-x86_64-231229.iso"

menuentry " Porteus 5.01 ISO - changes="  --class slackware   --class user-icon-porteus  {

     set bootparms="volume=33 reboot=cold extramod=$linux_folder/Modules \
       changes=EXIT:$linux_folder/changes/50save.dat \
       noload=kde;jinn;lxqt;xfce;lxde;mate;open;dat.xzm;mychanges;autonet;menu1" # ;mychanges"

     search -f $iso --set=root
     loopback loop $iso
     linux (loop)/boot/syslinux/vmlinuz      from=$iso $bootparms
     initrd (loop)/boot/syslinux/initrd.xz
     }  

dmesg log boot msgs

Posted: 16 Jan 2024, 22:04
by fanthom
Ed,

Kernel recognizes only specific set of parameters:
https://www.kernel.org/doc/html/latest/ ... eters.html

You can add to the bootloader config pretty much any string, even 'DonaldTrump=GOAT'.

Of course Donald wont be recognized by the kernel but can be recognized by the Porteus system. Unknown parameters are the Porteus ones.

'quiet' is probably added by default in your kernel config.
(it's function can be overridden by 'debug' if you add this parameter to the bootloader config).

dmesg log boot msgs

Posted: 17 Jan 2024, 00:37
by Ed_P
fanthom wrote:
16 Jan 2024, 22:04
Kernel recognizes only specific set of parameters:
https://www.kernel.org/doc/html/latest/ ... eters.html
That's a LOT of parameters, :shock: of which "reboot=" is one and "reboot=cold" is valid. But not "BOOT_IMAGE" or "from=" or "extramod" or "changes=" or "noload" and not even "volume". :o Interesting.

Thank you fanthom. :beer: