public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] grub2-mkconfig vs. xen
@ 2015-01-04 10:44 Konstantinos Agouros
  2015-01-04 13:26 ` Neil Bothwick
  2015-01-04 19:36 ` Tomas Mozes
  0 siblings, 2 replies; 3+ messages in thread
From: Konstantinos Agouros @ 2015-01-04 10:44 UTC (permalink / raw
  To: gentoo-user

Hi,

I have a box running a xen-domu. If I want to use grub2-mkconfig,
I learned that I have to put the kernel-.config into /etc/kernels.
However this does not create an entry which includes the initrd
(it creates one without xen though).
How do I achieve this? Also I only want entries with xen and I need
to pass some params to xen as well as the linux kernel. Which entries
in /etc/default/grub do that?

Regards,

Konstantin
-- 
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de
Altersheimerstr. 1, 81545 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"There is no 'dead' in team!" - Sameen Shaw


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

* Re: [gentoo-user] grub2-mkconfig vs. xen
  2015-01-04 10:44 [gentoo-user] grub2-mkconfig vs. xen Konstantinos Agouros
@ 2015-01-04 13:26 ` Neil Bothwick
  2015-01-04 19:36 ` Tomas Mozes
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Bothwick @ 2015-01-04 13:26 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

On Sun, 4 Jan 2015 10:44:52 +0000 (UTC), Konstantinos Agouros wrote:

> How do I achieve this? Also I only want entries with xen and I need
> to pass some params to xen as well as the linux kernel. Which entries
> in /etc/default/grub do that?

chmod -x /etc/grub.d/10_linux
to prevent the creation of standard linux stanzas.

The configuration section of info grub details the settings in defaults,
you want to look at GRUB_CMDLINE_XEN and GRUB_CMDLINE_XEN_DEFAULT.


-- 
Neil Bothwick

The Japanese call us lazy, but at least we cook our fish!

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [gentoo-user] grub2-mkconfig vs. xen
  2015-01-04 10:44 [gentoo-user] grub2-mkconfig vs. xen Konstantinos Agouros
  2015-01-04 13:26 ` Neil Bothwick
@ 2015-01-04 19:36 ` Tomas Mozes
  1 sibling, 0 replies; 3+ messages in thread
From: Tomas Mozes @ 2015-01-04 19:36 UTC (permalink / raw
  To: gentoo-user

On 2015-01-04 11:44, Konstantinos Agouros wrote:
> Hi,
> 
> I have a box running a xen-domu. If I want to use grub2-mkconfig,
> I learned that I have to put the kernel-.config into /etc/kernels.
> However this does not create an entry which includes the initrd
> (it creates one without xen though).
> How do I achieve this? Also I only want entries with xen and I need
> to pass some params to xen as well as the linux kernel. Which entries
> in /etc/default/grub do that?
> 
> Regards,
> 
> Konstantin

You may put your kernel configuration in /boot as well. The important 
thing is to have xen enabled in that configuration - that is what grub 
looks for. It only creates xen entries if xen is enabled. Also the name 
must match - for example config-*, kernel-* and so on. You can can set 
to boot xen by default with grub2-set-default (specify the menuentry) - 
it's written to grubenv. Before that, set GRUB_DEFAULT="saved" to 
/etc/default/grub.


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

end of thread, other threads:[~2015-01-04 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-04 10:44 [gentoo-user] grub2-mkconfig vs. xen Konstantinos Agouros
2015-01-04 13:26 ` Neil Bothwick
2015-01-04 19:36 ` Tomas Mozes

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