On 9/9/20 6:57 PM, Stuart D Gathman wrote:
On Wed, 9 Sep 2020, Steven A. Falco wrote:
But that doesn't seem to have any effect. After booting, I still see:
# cat /proc/cmdline
BOOT_IMAGE=(hd1,msdos2)/vmlinuz-5.8.0-1.fc33.aarch64 root=UUID=36a097ba-7577-4cc9-977e-df76c6590c48 ro
Where does the kernel get its command line on RPi?
I have an rPi3 and Pinebook. Same place as Intel.
grubby --info=DEFAULT
shows default boot
grubby --info=ALL
to show all kernels
https://fedoramagazine.org/setting-kernel-command-line-arguments-with-fedora-30/
Here is Pinebook:
# grubby --info=DEFAULT
index=0
kernel="/boot/vmlinuz-5.8.6-201.fc32.aarch64"
args="ro"
root="/dev/mapper/pinevg-f32"
initrd="/boot/initramfs-5.8.6-201.fc32.aarch64.img"
title="Fedora (5.8.6-201.fc32.aarch64) 32 (Thirty Two)"
id="8814846c48db47e2bb50c252d4bc0a29-5.8.6-201.fc32.aarch64"
Note that root and args are defaulted to kernelopts in grubenv.
# grub2-editenv list
saved_entry=8814846c48db47e2bb50c252d4bc0a29-5.8.6-201.fc32.aarch64
kernelopts=root=/dev/mapper/pinevg-f32 ro
boot_success=1
boot_indeterminate=0
Thanks. I've learned a little more. I have a Pi that is running F32. It works correctly - if I add "selinux=0" to /etc/default/grub, then run grub2-mkconfig, then reboot, then I do see the selinux=0 parameter in /proc/cmdline. However, on a second Pi that is running Rawhide, the exact same steps don't work.
One clue may be that when I run grub2-mkconfig on Rawhide, I get a warning:
pif# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
/etc/grub.d/30_uefi-firmware: line 34: warning: command substitution: ignored null byte in input
done
This warning is not present in F32.
One other bit of info: on the Rawhide system, if I edit /boot/loader/entries/1cba1c70b65f41128fb4b94953fc3741-5.8.0-1.fc33.aarch64.conf and put the selinux=0 setting in that file, then it works, i.e. I do see selinux=0 on /proc/cmdline after a reboot.
I'll have to try reloading the Rawhide system with a fresh image to see if that makes any difference.
Steve
_______________________________________________
arm mailing list -- arm@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to arm-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/arm@xxxxxxxxxxxxxxxxxxxxxxx