Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148486 - app-emulation/xen-tools: xend init script should test for xen enabled kernel
Summary: app-emulation/xen-tools: xend init script should test for xen enabled kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Andrew Ross (RETIRED)
URL:
Whiteboard: scheduled for -r4
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-21 03:48 UTC by Christian Hesse
Modified: 2006-10-13 17:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to check if kernel is Xen enabled (xend.diff,505 bytes, patch)
2006-09-21 03:49 UTC, Christian Hesse
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Hesse 2006-09-21 03:48:52 UTC
Hello everybody,

I added xend to my default runlevel. Now every time I boot my system with a kernel that is not xen enabled I get really ugly output. Would be nice to have the xend init script check if the kernel has Xen support.
Comment 1 Christian Hesse 2006-09-21 03:49:41 UTC
Created attachment 97622 [details, diff]
patch to check if kernel is Xen enabled
Comment 2 Robert S 2006-09-22 04:20:39 UTC
I fixed this by creating a new runlevel called "xen" which starts the xen and xendomains daemons.  It also switches to the xorg-x11 opengl interface because you can't install the nvidia driver with a xen kernel.  I choose the xen or non-xen kernel using grub.  I think its better this way.
Comment 3 Andrew Ross (RETIRED) gentoo-dev 2006-09-22 08:01:25 UTC
While a Xen-specific runlevel is the preferred way of dealing with this, there's no reason why we shouldn't make /etc/init.d/xend behave in a more Gentoo-like way (ie. avoiding the python stack traces). The iptables init.d script does a similar check for kernel-level support, which I'm taking as a precedent.
Comment 4 Andrew Ross (RETIRED) gentoo-dev 2006-10-13 17:06:41 UTC
Fixed in app-emulation/xen-tools-3.0.2-r4, thanks.