[augeas-devel] [PATCH 3/3] Grub: support the 'lock' directive

Matthew Booth mbooth at redhat.com
Tue Aug 27 14:24:50 UTC 2013


---
 lenses/grub.aug            | 1 +
 lenses/tests/test_grub.aug | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/lenses/grub.aug b/lenses/grub.aug
index 27caba3..738f44b 100644
--- a/lenses/grub.aug
+++ b/lenses/grub.aug
@@ -216,6 +216,7 @@ module Grub =
         | configfile
         | module_line
         | map_line
+        | kw_pres "lock"
 
     (* View: boot *)
     let boot =
diff --git a/lenses/tests/test_grub.aug b/lenses/tests/test_grub.aug
index 1a90ef4..9b0358b 100644
--- a/lenses/tests/test_grub.aug
+++ b/lenses/tests/test_grub.aug
@@ -37,6 +37,7 @@ title Fedora (2.6.24.3-34.fc8)
         initrd /initrd-2.6.24.3-34.fc8.img
         map (hd0) (hd1)
 title othermenu
+        lock
         configfile /boot/grub/othergrub.conf
 "
 
@@ -86,6 +87,7 @@ title othermenu
         { "initrd" = "/initrd-2.6.24.3-34.fc8.img" }
         { "map" { "from" = "(hd0)" } { "to" = "(hd1)" } } }
     { "title" = "othermenu"
+        { "lock" }
         { "configfile" = "/boot/grub/othergrub.conf" } }
 
 
-- 
1.8.3.1




More information about the augeas-devel mailing list