Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_options is broken. #719

Open
jclab-joseph opened this issue Jan 24, 2025 · 0 comments
Open

load_options is broken. #719

jclab-joseph opened this issue Jan 24, 2025 · 0 comments

Comments

@jclab-joseph
Copy link

jclab-joseph commented Jan 24, 2025

See https://github.com/jclab-joseph/shim-cmdline-bug

When using chainloader in grub with Secure Boot ON, the value of cmdline (load_options) is broken.

cmdline: grub.cfg

search --file --set boot_root /linux.efi
echo "boot_root: ${boot_root}"
ls (${boot_root})/
if chainloader (${boot_root})/linux.efi console=tty1 rdinit=/bin/sh hello=world; then
  boot
else
  echo "FAILED"
fi

SECURE BOOT ON

Image

=> NO /proc/cmdline !!!

If look at it in hex, you may see some unknown garbage values.

SECURE BOOT OFF

Image

=> GOOD /proc/cmdline !!!

Reproduce:

git clone https://github.com/jclab-joseph/shim-cmdline-bug.git
cd shim-cmdline-bug/
git lfs pull
./start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant