[augeas-devel] [PATCH] device_map.aug: Find device.map under any /boot subdirectory

Mike Latimer mlatimer at suse.com
Thu Apr 24 21:40:14 UTC 2014


The one grub/grub2 common configuration file augeas recognizes is device.map.
However, some distributions (such as SUSE) place device.map in /boot/grub2 for
grub2 environments. This patch causes the lense to find this file under any
/boot subdirectory. (This approach seems more appropriate than adding
/boot/grub2/device.map to the incl list, but either one works.)

---
 lenses/device_map.aug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lenses/device_map.aug b/lenses/device_map.aug
index cb43206..bd1825d 100644
--- a/lenses/device_map.aug
+++ b/lenses/device_map.aug
@@ -21,7 +21,7 @@ module Device_map =
 
   let lns = ( empty | comment | map ) *
 
-  let xfm = transform lns (incl "/boot/grub/device.map")
+  let xfm = transform lns (incl "/boot/*/device.map")
 
 (* Local Variables: *)
 (* mode: caml *)
-- 
1.8.4.5




More information about the augeas-devel mailing list