public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] GRUB: Configuring a softlevel for grub
@ 2016-06-30 17:51 Ian Zimmerman
  2016-06-30 18:39 ` Neil Bothwick
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Zimmerman @ 2016-06-30 17:51 UTC (permalink / raw
  To: gentoo-user

I followed the Handbook page [1] to set up an additional runlevel for a
different network environment.  The first part, adding and customizing
the services with rc-update in the new level, went swimmingly.  Now I'm
at the line

> Edit the bootloader configuration and add a new entry for the offline
> runlevel. In that entry, add softlevel=offline as a boot parameter.

In my case the bootloader is grub2.  Looking at the way
/boot/grub/grub.cfg is generated, the Linux menu entries come from
/etc/grub.d/10_linux, and that script is hardwired to create exactly one
normal entry per kernel version, plus maybe a rescue entry that boots
into single user.  There is no provision for additional multiuser
entries.  So I have to create my own, but this seems to imply I have to
do one of:

1. modify 10_linux itself: huge, complex, dangerous

2. copy 10_linux into a new file and edit just the single line with boot
params: ugly, fragile if 10_linux changes

Any other way?  I dream of somehow "referencing" 10_linux with just the
GRUB_CMDLINE_LINUX_DEFAULT variable changed.

[1]
https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Initscripts#Using_softlevel

-- 
Please *no* private copies of mailing list or newsgroup messages.
Why does the arrow on Hillary signs point to the right?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-30 23:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30 17:51 [gentoo-user] GRUB: Configuring a softlevel for grub Ian Zimmerman
2016-06-30 18:39 ` Neil Bothwick
2016-06-30 19:33   ` [gentoo-user] " Ian Zimmerman
2016-06-30 21:37     ` Neil Bothwick
2016-06-30 23:31       ` Ian Zimmerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox