Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Hubris?
Date: Tue, 28 Jul 2015 17:02:36
Message-Id: 20150728180211.14816375@digimed.co.uk
In Reply to: Re: [gentoo-user] Hubris? by Rich Freeman
1 On Tue, 28 Jul 2015 12:26:14 -0400, Rich Freeman wrote:
2
3 > Yeah, that one probably would need some hand-rolling unless you
4 > basically wanted to write your own mkconfig plugins or your own
5 > mkconfig.
6
7 Writing your own mkconfig plugin is pretty simple, it's just a shell
8 script that spits out the relevant lines for each kernel it finds.
9
10 for KERNEL in /boot/vmlinuz-*; do
11 echo "menuentry \"$KERNEL\" {"
12 echo "linux $KERNEL $STD_OPTS"
13 echo "}"
14 done
15
16 You can tidy that up a bit and add extra lines to output No X or rescue
17 alternatives, and you can grab the correct syntax from the mkconfig
18 generated file in the first place.
19
20
21 --
22 Neil Bothwick
23
24 You are a completely unique individual, just like everybody else.