Hello,

 Entries background and configfile can be found in grub.conf , but
currently they are not parsed correctly. 

=== example grub.conf ===
default 0
background 103332
timeout 5

title Pardus 2011
root (hd0,7)
kernel /boot/kernel-2.6.37.2
initrd /boot/initramfs-2.6.37.2

title othermenu
configfile /boot/grub/othergrub.conf
==============


 Attached patch fixes parsing such grub.conf


 regards,
-- 
 Onur Küçük                                      Knowledge speaks,
 <onur.--.-.pardus.org.tr>                       but wisdom listens

>From 08d51b5e8d030eb819faffc6caface8f596aa812 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Onur=20K=C3=BC=C3=A7=C3=BCk?= <[email protected]>
Date: Sat, 19 Mar 2011 14:26:21 +0200
Subject: [PATCH] Add support for configfile and background in grub.aug

---
 lenses/grub.aug |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lenses/grub.aug b/lenses/grub.aug
index 60d745b..b80db50 100644
--- a/lenses/grub.aug
+++ b/lenses/grub.aug
@@ -70,6 +70,7 @@ module Grub =
                      | kw_menu_arg "timeout"
                      | kw_menu_arg "splashimage"
                      | kw_menu_arg "gfxmenu"
+                     | kw_menu_arg "background"
                      | serial
                      | terminal
                      | password_arg
@@ -113,6 +114,9 @@ module Grub =
     let savedefault =
       [ command "savedefault" "\t" . (spc . store Rx.integer)? . eol ]
 
+    let configfile =
+      [ command "configfile" "\t" . spc . store Rx.no_spaces . eol ]
+
     let boot_setting = kw_boot_arg "root"
                      | kernel
                      | kw_boot_arg "initrd"
@@ -122,6 +126,7 @@ module Grub =
                      | kw_boot_arg "findroot"  (* Solaris extension *)
                      | kw_pres "quiet"  (* Seems to be a Ubuntu extension *)
                      | savedefault
+                     | configfile
                      | module_line
                      | map_line
 
-- 
1.7.3.4

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to