File bug-291766_install-kmp.patch of Package yast2-drbd

Index: yast2-drbd-2.13.1/src/Drbd.ycp
===================================================================
--- yast2-drbd-2.13.1.orig/src/Drbd.ycp
+++ yast2-drbd-2.13.1/src/Drbd.ycp
@@ -76,7 +76,11 @@ global boolean Read() {
     Progress::NextStage();
 
     // check installed packages
-    if (!Mode::test() && !PackageSystem::CheckAndInstallPackagesInteractive(["drbd"]))
+    // find out which krbd-kmp-<arch> to be installed
+    map out = (map) SCR::Execute(.target.bash_output, "echo -n `uname -r|grep -Eo \"default|smp|bigsmp|pae|xen|xenpae|debug|ppc64|iseries64\"`");
+    string krbd_kmp_arch= out["stdout"]:"default";
+
+    if (!Mode::test() && !PackageSystem::CheckAndInstallPackagesInteractive(["drbd", "drbd-kmp-" + krbd_kmp_arch]))
     {
         return false;
     }