kairos-io / kairos

:penguin: The immutable Linux meta-distribution for edge Kubernetes.
https://kairos.io
Apache License 2.0
1.02k stars 89 forks source link

Extra args in grub cmdline #2388

Open Itxaka opened 3 months ago

Itxaka commented 3 months ago

Kairos version: master

CPU architecture, OS, and Version: GRUB only

Describe the bug looks like the cmdline is being altered by something

To Reproduce boot a grub based image and check the cmdline

console=ttyS0 console=tty1 net.ifnames=1 rd.cos.
oemlabel=COS_OEM rd.cos.oemtimeout=10 panic=5 rd.emergency=reboot rd.shell=0 sys
temd.crash_reboot=yes root=LABEL=COS_ACTIVE cos-img/filename=/cOS/active.img sel
inux=0 rd.emergency=reboot rd.shell=0 panic=5 systemd.crash_reboot systemd.crash
_shell=0

The first part seems to come the bootargs properly as it follows the schema set in there

$baseExtraConsole $baseCmd $baseRootCmd $baseSelinuxCmd $baseExtraArgs

in which:

So there is extra args in the form of rd.emergency=reboot rd.shell=0 panic=5 systemd.crash_reboot systemd.crash_shell=0

Could not find those extra args anywhere, so maybe they are being duplicated somehow or read from somewhere else?

Expected behavior

Logs

Additional context

ci-robbot commented 2 months ago

Hello Itxaka,

I'm a bot, an experiment of @mudler and @jimmykarily, assisting with ticket audits in this Github project.

I see that you've opened ticket #2388 reporting an issue with extra arguments in the grub cmdline in the "kairos" repository.

To help us investigate this, please provide the following details to meet the project's requirements:

  1. A clear description of the issue.
  2. Steps to reproduce (if it's a bug).
  3. The versions of the relevant artifacts being used.

Once you provide this information, the ticket will be reviewed and triaged accordingly.

Thank you for your cooperation and for reporting this issue.

Best regards, Github Audit Bot