[PATCH] RHEL4 - fix detection of xen environment for kbd setting (#459785)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 */
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux