File kdm-filter-out-btrfs-snapshots.patch of Package kdebase4-workspace

diff --git a/kdm/backend/bootman.c b/kdm/backend/bootman.c
index 5aa35a3..8e48aa3 100644
--- a/kdm/backend/bootman.c
+++ b/kdm/backend/bootman.c
@@ -251,7 +251,7 @@ getGrub2OrBurg(char ***opts, int *def, int *cur, const char *grubRebootExec)
         for (; isspace(*(linp + len - 1)); len--);
         if ((ptr = match(linp, &len, "set", 3)) && !memcmp(ptr, "default=\"${saved_entry}\"", 24)) {
             ret = BO_OK;
-        } else if ((ptr = match(linp, &len, "menuentry", 9))) {
+        } else if ((ptr = match(linp, &len, "menuentry", 9)) && memcmp(ptr, "\"If OK, run", 11)) {
             if (menuLvl <= GRUB2_MAX_MENU_LEVEL) {
                 if (buildBootList(opts, ptr, menuLvl, menus) < 0) {
                     ret = BO_IO;
@@ -259,7 +259,7 @@ getGrub2OrBurg(char ***opts, int *def, int *cur, const char *grubRebootExec)
                 }
             }
             inEntry = 1;
-        } else if ((ptr = match(linp, &len, "submenu", 7))) {
+        } else if ((ptr = match(linp, &len, "submenu", 7)) && memcmp(ptr, "\"Bootable snapshot", 18)) {
             if (menuLvl < GRUB2_MAX_MENU_LEVEL) {
                 menus[menuLvl] = arrLen(*opts);
                 if (buildBootList(opts, ptr, menuLvl, menus) < 0) {