Fix detection of Xen dom0 vs domU can use the right variable in init scripts.

This commit is contained in:
Roy Marples
2008-01-04 12:39:06 +00:00
parent d7961bef66
commit c13471f91f
3 changed files with 4 additions and 4 deletions

View File

@@ -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",