On Tue, Jun 08, 2010 at 21:35:53 +0800, Jason Heeris wrote: > I use runlevel 3 for non-X boots (gdm, etc is disabled), and to boot > into it I append "3" to my "normal use" entry in the GRUB2 menu. I'd > like to just automatically generate the extra line, so that even after > a kernel upgrade it'll still be there (but obviously for the new > kernel). > > There was a way to do this in legacy GRUB, but it's been so long I > can't remember what it was (I think there was an automagic kernel > entry generation section in menu.lst?). > > Is there an easy way to do this with GRUB2? I know my way around the > GRUB2 config scripts and defaults file to some extent, but I'm no > expert.
If you want to append additional parameters to the kernel command line, configure it via GRUB_CMDLINE_LINUX_DEFAULT or GRUB_CMDLINE_LINUX in /etc/default/grub. If you want to add further entries to the grub boot menu, that can be handled by a script in /etc/grub.d/ (see the README in that directory). -- Regards, | Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100608205626.ga3...@isar.localhost