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

Re: Kernel cmdline



Hi!

Steven Chamberlain <steven@pyro.eu.org> writes:
> 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

Jep and sysvinit actually reads that only on __linux__ anyway

> 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

Might be worth looking at. Will dig into that

>> 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`.

Hm I guess not. What me / DSA is mostly interested in would be having
e.g. fsck prompts (during bootup) on the serial line in proper. on linux
you can do a 'console=ttyS0 console=tty0' and it just works (tm)

  Christoph

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer


Reply to: