Blame SOURCES/0032-Make-the-cases-for-0cb78dab-actually-work-not-just-n.patch

903092
From 7d2fc73dad0e7000f7fbeb985bc6d80fbb0ea848 Mon Sep 17 00:00:00 2001
903092
From: Peter Jones <pjones@redhat.com>
903092
Date: Tue, 14 Apr 2015 14:34:10 -0400
903092
Subject: [PATCH 32/41] Make the cases for 0cb78dab /actually work/, not just
903092
 not crash.
903092
903092
Resolves: rhbz#1204353
903092
Resolves: rhbz#1204888
903092
Resolves: rhbz#1206943
903092
903092
Signed-off-by: Peter Jones <pjones@redhat.com>
903092
---
903092
 grubby.c              | 30 +++++++++++-----
903092
 test.sh               |  3 ++
903092
 test/grub.14          | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++
903092
 test/results/add/g1.7 | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++
903092
 4 files changed, 218 insertions(+), 8 deletions(-)
903092
 create mode 100644 test/grub.14
903092
 create mode 100644 test/results/add/g1.7
903092
903092
diff --git a/grubby.c b/grubby.c
903092
index f7209a9..e4358ad 100644
903092
--- a/grubby.c
903092
+++ b/grubby.c
903092
@@ -217,6 +217,7 @@ struct configFileInfo grubConfigType = {
903092
     .mbHyperFirst = 1,
903092
     .mbInitRdIsModule = 1,
903092
     .mbAllowExtraInitRds = 1,
903092
+    .titlePosition = 1,
903092
 };
903092
 
903092
 struct keywordTypes grub2Keywords[] = {
903092
@@ -586,6 +587,7 @@ struct configFileInfo eliloConfigType = {
903092
     .needsBootPrefix = 1,
903092
     .argsInQuotes = 1,
903092
     .mbConcatArgs = 1,
903092
+    .titlePosition = 1,
903092
 };
903092
 
903092
 struct configFileInfo liloConfigType = {
903092
@@ -594,6 +596,7 @@ struct configFileInfo liloConfigType = {
903092
     .entryStart = LT_KERNEL,
903092
     .argsInQuotes = 1,
903092
     .maxTitleLength = 15,
903092
+    .titlePosition = 1,
903092
 };
903092
 
903092
 struct configFileInfo yabootConfigType = {
903092
@@ -604,6 +607,7 @@ struct configFileInfo yabootConfigType = {
903092
     .argsInQuotes = 1,
903092
     .maxTitleLength = 15,
903092
     .mbAllowExtraInitRds = 1,
903092
+    .titlePosition = 1,
903092
 };
903092
 
903092
 struct configFileInfo siloConfigType = {
903092
@@ -613,6 +617,7 @@ struct configFileInfo siloConfigType = {
903092
     .needsBootPrefix = 1,
903092
     .argsInQuotes = 1,
903092
     .maxTitleLength = 15,
903092
+    .titlePosition = 1,
903092
 };
903092
 
903092
 struct configFileInfo ziplConfigType = {
903092
@@ -632,6 +637,7 @@ struct configFileInfo extlinuxConfigType = {
903092
     .maxTitleLength = 255,
903092
     .mbAllowExtraInitRds = 1,
903092
     .defaultIsUnquoted = 1,
903092
+    .titlePosition = 1,
903092
 };
903092
 
903092
 struct grubConfig {
903092
@@ -820,12 +826,20 @@ static int isEntryStart(struct singleLine * line,
903092
 }
903092
 
903092
 /* extract the title from within brackets (for zipl) */
903092
-static char * extractTitle(struct singleLine * line) {
903092
+static char * extractTitle(struct grubConfig *cfg, struct singleLine * line) {
903092
     /* bracketed title... let's extract it */
903092
     char * title = NULL;
903092
+    if (cfg->cfi == &grub2ConfigType)
903092
+	return grub2ExtractTitle(line);
903092
     if (line->type == LT_TITLE) {
903092
-	title = strdup(line->elements[0].item + 1);
903092
-	*(title + strlen(title) - 1) = '\0';
903092
+	char *tmp = line->elements[cfg->cfi->titlePosition].item;
903092
+	if (cfg->cfi->titleBracketed) {
903092
+	    tmp++;
903092
+	    title = strdup(tmp);
903092
+	    *(title + strlen(title) - 1) = '\0';
903092
+	} else {
903092
+	    title = strdup(tmp);
903092
+	}
903092
     } else if (line->type == LT_MENUENTRY)
903092
 	title = strdup(line->elements[1].item);
903092
     else
903092
@@ -1433,7 +1447,7 @@ static struct grubConfig * readConfig(const char * inName,
903092
                                 line->elements[1].item)) break;
903092
                 } else if (line) {
903092
                     if (!strcmp(defaultLine->elements[1].item, 
903092
-                                extractTitle(line))) break;
903092
+                                extractTitle(cfg, line))) break;
903092
                 }
903092
 		i++;
903092
 		entry = NULL;
903092
@@ -1484,7 +1498,7 @@ static void writeDefault(FILE * out, char * indent,
903092
 	    if (!line)
903092
 		line = getLineByType(LT_TITLE, entry->lines);
903092
 	    if (line) {
903092
-		title = extractTitle(line);
903092
+		title = extractTitle(cfg, line);
903092
 		if (title)
903092
 		    cfg->cfi->setEnv(cfg->cfi, "saved_entry", title);
903092
 	    }
903092
@@ -1522,7 +1536,7 @@ static void writeDefault(FILE * out, char * indent,
903092
             else if (line && (line->numElements == 1) && 
903092
                      cfg->cfi->titleBracketed) {
903092
 		fprintf(out, "%sdefault%s%s\n", indent, separator, 
903092
-                        extractTitle(line));
903092
+                        extractTitle(cfg, line));
903092
             }
903092
 	}
903092
     }
903092
@@ -3309,7 +3323,7 @@ int addMBInitrd(struct grubConfig * cfg, const char *newMBKernel,
903092
 	    if (!line)
903092
 		continue;
903092
 
903092
-	    linetitle = extractTitle(line);
903092
+	    linetitle = extractTitle(cfg, line);
903092
 	    if (!linetitle)
903092
 		continue;
903092
 	    if (strcmp(title, linetitle)) {
903092
@@ -3363,7 +3377,7 @@ int updateInitrd(struct grubConfig * cfg, const char * image,
903092
 	    if (!line)
903092
 		continue;
903092
 
903092
-	    linetitle = extractTitle(line);
903092
+	    linetitle = extractTitle(cfg, line);
903092
 	    if (!linetitle)
903092
 		continue;
903092
 	    if (strcmp(title, linetitle)) {
903092
diff --git a/test.sh b/test.sh
903092
index fb13033..30115d1 100755
903092
--- a/test.sh
903092
+++ b/test.sh
903092
@@ -269,6 +269,9 @@ grubTest grub.13 setdefaultindex/g.13.0 --set-default-index=0
903092
 grubTest grub.13 setdefaultindex/g.13.1 --set-default-index=1
903092
 grubTest grub.13 setdefaultindex/g.13.9 --set-default-index=9
903092
 
903092
+testing="GRUB add initrd"
903092
+grubTest grub.14 add/g1.7 --boot-filesystem=/ --update-kernel=/vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64 --initrd /initramfs-4.0.0-0.rc4.git1.4.fc23.x86_64.img '--args= LANG=en_US.UTF-8' '--title=Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)'
903092
+
903092
 testing="GRUB display default index"
903092
 grubDisplayTest grub.1 defaultindex/0 --default-index
903092
 grubDisplayTest grub.2 defaultindex/0 --default-index
903092
diff --git a/test/grub.14 b/test/grub.14
903092
new file mode 100644
903092
index 0000000..5c0b9b3
903092
--- /dev/null
903092
+++ b/test/grub.14
903092
@@ -0,0 +1,96 @@
903092
+# grub.conf generated by anaconda
903092
+#
903092
+# Note that you do not have to rerun grub after making changes to this file
903092
+# NOTICE:  You have a  partition.  This means that
903092
+#          all kernel and initrd paths are relative to /, eg.
903092
+#          root (hd0,0)
903092
+#          kernel /vmlinuz-version ro root=/dev/d2/root
903092
+#          initrd /initrd-version.img
903092
+#boot=/dev/hda
903092
+timeout=5
903092
+splashimage=(hd0,0)/grub/splash.xpm.gz
903092
+default=0
903092
+hiddenmenu
903092
+title Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+title Fedora (4.0.0-0.rc4.git0.1.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc4.git0.1.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc4.git0.1.fc23.x86_64.img
903092
+title Fedora (4.0.0-0.rc1.git1.2.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc1.git1.2.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc1.git1.2.fc23.x86_64.img
903092
+title Fedora (4.0.0-0.rc1.git0.1.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc1.git0.1.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc1.git0.1.fc23.x86_64.img
903092
+title Fedora (3.20.0-0.rc0.git9.2.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.20.0-0.rc0.git9.2.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.20.0-0.rc0.git9.2.fc23.x86_64.img
903092
+title Fedora (3.20.0-0.rc0.git6.2.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.20.0-0.rc0.git6.2.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.20.0-0.rc0.git6.2.fc23.x86_64.img
903092
+title Fedora (3.19.0-1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc7.git1.2.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc7.git1.2.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc7.git1.2.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc7.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc7.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc7.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc6.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc6.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc6.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc5.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc5.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc5.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc4.git2.2.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc4.git2.2.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc4.git2.2.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc4.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc4.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc4.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc3.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc3.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc3.git0.1.fc22.x86_64.img
903092
+title Fedora (3.18.1-2.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.18.1-2.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.18.1-2.fc22.x86_64.img
903092
+title Fedora (3.17.1-302.fc21.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.17.1-302.fc21.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.17.1-302.fc21.x86_64.img
903092
+title Fedora 20 Rescue 4b741960432e833443a6bc004563501d (3.10.0-0.rc4.git0.1.fc20.x86_64)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-0-rescue-4b741960432e833443a6bc004563501d ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-0-rescue-4b741960432e833443a6bc004563501d.img
903092
+title Fedora 20 Rescue 4b741960432e833443a6bc004563501d (3.9.0-0.rc4.git0.1.fc20.x86_64)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-0-rescue-4b741960432e833443a6bc004563501d ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-0-rescue-4b741960432e833443a6bc004563501d.img
903092
+title Memtest86+ (4.20)
903092
+	root (hd0,0)
903092
+	kernel /elf-memtest86+-4.20
903092
+title Fedora (2.6.29.5-191.fc11.x86_64)
903092
+        root (hd0,0)
903092
+	kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/d2/rescue64
903092
+	initrd /initrd-2.6.29.5-191.fc11.x86_64.img
903092
+title install
903092
+	kernel /f10vz
903092
+	initrd /f10ird.img
903092
+title gittest
903092
+	kernel /gittest
903092
diff --git a/test/results/add/g1.7 b/test/results/add/g1.7
903092
new file mode 100644
903092
index 0000000..dc77c0f
903092
--- /dev/null
903092
+++ b/test/results/add/g1.7
903092
@@ -0,0 +1,97 @@
903092
+# grub.conf generated by anaconda
903092
+#
903092
+# Note that you do not have to rerun grub after making changes to this file
903092
+# NOTICE:  You have a  partition.  This means that
903092
+#          all kernel and initrd paths are relative to /, eg.
903092
+#          root (hd0,0)
903092
+#          kernel /vmlinuz-version ro root=/dev/d2/root
903092
+#          initrd /initrd-version.img
903092
+#boot=/dev/hda
903092
+timeout=5
903092
+splashimage=(hd0,0)/grub/splash.xpm.gz
903092
+default=0
903092
+hiddenmenu
903092
+title Fedora (4.0.0-0.rc4.git1.4.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc4.git1.4.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc4.git1.4.fc23.x86_64.img
903092
+title Fedora (4.0.0-0.rc4.git0.1.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc4.git0.1.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc4.git0.1.fc23.x86_64.img
903092
+title Fedora (4.0.0-0.rc1.git1.2.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc1.git1.2.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc1.git1.2.fc23.x86_64.img
903092
+title Fedora (4.0.0-0.rc1.git0.1.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-4.0.0-0.rc1.git0.1.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-4.0.0-0.rc1.git0.1.fc23.x86_64.img
903092
+title Fedora (3.20.0-0.rc0.git9.2.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.20.0-0.rc0.git9.2.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.20.0-0.rc0.git9.2.fc23.x86_64.img
903092
+title Fedora (3.20.0-0.rc0.git6.2.fc23.x86_64) 23 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.20.0-0.rc0.git6.2.fc23.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.20.0-0.rc0.git6.2.fc23.x86_64.img
903092
+title Fedora (3.19.0-1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc7.git1.2.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc7.git1.2.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc7.git1.2.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc7.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc7.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc7.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc6.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc6.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc6.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc5.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc5.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc5.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc4.git2.2.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc4.git2.2.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc4.git2.2.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc4.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc4.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc4.git0.1.fc22.x86_64.img
903092
+title Fedora (3.19.0-0.rc3.git0.1.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.19.0-0.rc3.git0.1.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.19.0-0.rc3.git0.1.fc22.x86_64.img
903092
+title Fedora (3.18.1-2.fc22.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.18.1-2.fc22.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.18.1-2.fc22.x86_64.img
903092
+title Fedora (3.17.1-302.fc21.x86_64) 22 (Rawhide)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-3.17.1-302.fc21.x86_64 ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-3.17.1-302.fc21.x86_64.img
903092
+title Fedora 20 Rescue 4b741960432e833443a6bc004563501d (3.10.0-0.rc4.git0.1.fc20.x86_64)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-0-rescue-4b741960432e833443a6bc004563501d ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-0-rescue-4b741960432e833443a6bc004563501d.img
903092
+title Fedora 20 Rescue 4b741960432e833443a6bc004563501d (3.9.0-0.rc4.git0.1.fc20.x86_64)
903092
+	root (hd0,0)
903092
+	kernel /vmlinuz-0-rescue-4b741960432e833443a6bc004563501d ro root=/dev/sda1 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us rd_plytheme=charge
903092
+	initrd /initramfs-0-rescue-4b741960432e833443a6bc004563501d.img
903092
+title Memtest86+ (4.20)
903092
+	root (hd0,0)
903092
+	kernel /elf-memtest86+-4.20
903092
+title Fedora (2.6.29.5-191.fc11.x86_64)
903092
+        root (hd0,0)
903092
+	kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/d2/rescue64
903092
+	initrd /initrd-2.6.29.5-191.fc11.x86_64.img
903092
+title install
903092
+	kernel /f10vz
903092
+	initrd /f10ird.img
903092
+title gittest
903092
+	kernel /gittest
903092
-- 
903092
2.4.3
903092