Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123258 - /sbin/functions.sh is_xenU_sys() wrong check
Summary: /sbin/functions.sh is_xenU_sys() wrong check
Status: RESOLVED DUPLICATE of bug 107976
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 05:27 UTC by Erik Logtenberg
Modified: 2006-02-18 11:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Logtenberg 2006-02-18 05:27:41 UTC
In /sbin/functions.sh there is a is_xenU_sys() function, that tests if the system is a xenU domain. If so, things like /etc/init.d/clock and so don't try to access hardware that they can't reach - this is a really nice feature I think.
Unfortunately, the test to check for a xenU domain is faulty; the implementation is currently as follows:

is_xenU_sys() {
        [[ -d /proc/xen && ! -f /proc/xen/privcmd ]]
}

The first check tests if the system is a Xen guest domain or not. The second check is there to see the difference between a xen0 and a xenU domain. Unfortunately, (at least in xen 3.0.1) the /proc/xen/privcmd file exists both in xen0 and in xenU domains.
So the check now thinks that xenU domains are xen0 domains.

I'm not quite sure what the best way is to discriminate between xen0 and xenU domains.
Comment 1 SpanKY gentoo-dev 2006-02-18 11:29:29 UTC

*** This bug has been marked as a duplicate of 107976 ***