[PATCH 3/4] Include prefix when printing kernel information

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

 



When running grubby with '--info=', the initrd is displayed with the
boot prefix, so, for correctness, also include it in the kernel line.

Signed-off-by: Cleber Rosa <crosa@xxxxxxxxxx>
---
 grubby.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/grubby.c b/grubby.c
index bd10205..41efee1 100644
--- a/grubby.c
+++ b/grubby.c
@@ -1837,7 +1837,7 @@ void displayEntry(struct singleEntry * entry, const char * prefix, int index) {
         return;
     }
 
-    printf("kernel=%s\n", line->elements[1].item);
+    printf("kernel=%s%s\n", prefix, line->elements[1].item);
 
     if (line->numElements >= 3) {
 	printf("args=\"");
-- 
1.7.6.5

_______________________________________________
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