[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] RHEL4 - fix detection of xen environment for kbd setting (#459785)
- From: Radek Vykydal <rvykydal redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH] RHEL4 - fix detection of xen environment for kbd setting (#459785)
- Date: Wed, 17 Dec 2008 13:24:32 +0100
Hi,
/proc/xen is present in non-xen installation, so use
/proc/xen/capabilities instead.
Radek
diff --git a/isys/lang.c b/isys/lang.c
index 55eae69..2ac9307 100644
--- a/isys/lang.c
+++ b/isys/lang.c
@@ -89,7 +89,7 @@ int loadKeymap(gzFile stream) {
#endif
if (isVioConsole())
return 0;
- if (!access("/proc/xen", R_OK)) /* xen can't load keymaps */
+ if (!access("/proc/xen/capabilities", R_OK)) /* xen can't load keymaps */
return 0;
/* assume that if we're already on a pty loading a keymap is silly */
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]