[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel cmdline



Christoph Egger wrote:
> Does anyone know whether there's a way to modify the kernel comandline
> from grub? The active one looks somewhat magic :-/
> 
> | # cat /proc/cmdline 
> | BOOT_IMAGE=/kernel ro root=302

That seems hardcoded:
https://svnweb.freebsd.org/base/releng/10.1/sys/compat/linprocfs/linprocfs.c?revision=272461&view=markup#l1282

But d-i can receive boot parameters via GRUB - not sure how
that was implemented:
https://anonscm.debian.org/cgit/d-i/debian-installer.git/tree/build/boot/kfreebsd/grub-kfreebsd-cdrom.cfg?id=eef40b5c22f5ea68618aaffc877b8788b527c885#n51

> Goal is to get sysvinit's bootlogd use /dev/ttyu0 in the end.

Until we figure it out, you may be able to get the same info with
`sysctl kern.msgbuf`.

Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org

Attachment: signature.asc
Description: Digital signature


Reply to: