[Tfug] (return to) grub question
John Gruenenfelder
johng at as.arizona.edu
Wed Jun 22 14:57:17 MST 2005
On Wed, Jun 22, 2005 at 07:21:55AM -0700, Joel Howard wrote:
>After messing around a little, I discovered that boot prompts run
>through grub can be made to appear in /proc/cmdline by including them in
>the kernel line (not in the debian altoptions section), like so:
>
>title Debian GNU/Linux, kernel 2.6.11
>root (hd0,1)
>kernel /vmlinuz-2.6.11 root=/dev/hda9 ro mem=512M mem=nopentium
> nmi_watchdog=1
I probably should have looked at my GRUB config sooner...
I don't believe you were using the altoption line properly. Altoption looks
like this (by default):
# altoptions=(recovery mode) single
The part in parentheses is the label, which your example from before lacked.
Everything else are command line options. Altoption is used to provide an
extra menu line for each kernel, but with slightly different options. You
also need to have alternative=true set in order to use it.
Given your sample above, I think you just want these options applied to all
kernels. In that case you can do:
# kopt=root=/dev/hda9 ro mem=512M mem=nopentium nmi_watchdog=1
And they'll all get it. If you just want it on some kernels, you can do:
# kopt_2_6_10=root=/dev/hda9 ro mem=512M mem=nopentium nmi_watchdog=1
...for example. And then update-grub of course.
--
--John Gruenenfelder Research Assistant, Steward Observatory, U of Arizona
johng at as.arizona.edu
Try Weasel Reader for PalmOS -- http://gutenpalm.sf.net
"This is the most fun I've had without being drenched in the blood
of my enemies!"
--Sam of Sam & Max
More information about the tfug
mailing list