aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-04 12:39:06 +0000
committerRoy Marples <roy@marples.name>2008-01-04 12:39:06 +0000
commitc13471f91fbc02af5ebaf98404a4250ac091ff86 (patch)
treeab5646e5a6149c6b1df5d37985eb7170752829fd /src
parentd7961bef66619849e14fe8be38f1880d0473a2a7 (diff)
Fix detection of Xen dom0 vs domU can use the right variable in init scripts.
Diffstat (limited to 'src')
-rw-r--r--src/rc-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc-misc.c b/src/rc-misc.c
index b46e2273..0d8b8c1f 100644
--- a/src/rc-misc.c
+++ b/src/rc-misc.c
@@ -295,10 +295,10 @@ char **env_config (void)
if ((fp = fopen ("/proc/xen/capabilities", "r"))) {
fclose (fp);
if (file_regex ("/proc/xen/capabilities", "control_d"))
- snprintf (sys, sizeof (sys), "XENU");
+ snprintf (sys, sizeof (sys), "XEN0");
}
if (! sys[0])
- snprintf (sys, sizeof (sys), "XEN0");
+ snprintf (sys, sizeof (sys), "XENU");
} else if (file_regex ("/proc/cpuinfo", "UML")) {
snprintf (sys, sizeof (sys), "UML");
} else if (file_regex ("/proc/self/status",