|
|
c55e75 |
From 898ea6cd04163b38aa59b0c3d9df23cf1837d425 Mon Sep 17 00:00:00 2001
|
|
|
c2e930 |
From: Dominic Cleal <dcleal@redhat.com>
|
|
|
c2e930 |
Date: Fri, 12 Jun 2015 10:46:57 +0100
|
|
|
c2e930 |
Subject: [PATCH] UpdateDB: autoload /etc/updatedb.conf with Simplevars
|
|
|
c2e930 |
|
|
|
c2e930 |
updatedb.conf was loaded with Simplevars in Augeas 1.1.0, so continue
|
|
|
c2e930 |
for compatibility. Use aug_transform, augtool --transform etc. to use
|
|
|
c2e930 |
the newer, different, UpdateDB lens.
|
|
|
c2e930 |
---
|
|
|
c2e930 |
lenses/simplevars.aug | 1 +
|
|
|
c2e930 |
lenses/updatedb.aug | 8 --------
|
|
|
c2e930 |
2 files changed, 1 insertion(+), 8 deletions(-)
|
|
|
c2e930 |
|
|
|
c2e930 |
diff --git a/lenses/simplevars.aug b/lenses/simplevars.aug
|
|
|
c55e75 |
index ad9795f0..ff0602cc 100644
|
|
|
c2e930 |
--- a/lenses/simplevars.aug
|
|
|
c2e930 |
+++ b/lenses/simplevars.aug
|
|
|
c2e930 |
@@ -41,6 +41,7 @@ let lns = (Util.empty | Util.comment | entry)*
|
|
|
c2e930 |
(* Variable: filter *)
|
|
|
c2e930 |
let filter = incl "/etc/kernel-img.conf"
|
|
|
c2e930 |
. incl "/etc/kerneloops.conf"
|
|
|
c2e930 |
+ . incl "/etc/updatedb.conf"
|
|
|
c2e930 |
. incl "/etc/wgetrc"
|
|
|
c2e930 |
. incl "/etc/zabbix/*.conf"
|
|
|
c2e930 |
. incl "/etc/audit/auditd.conf"
|
|
|
c2e930 |
diff --git a/lenses/updatedb.aug b/lenses/updatedb.aug
|
|
|
c55e75 |
index 40cd26fb..c7309b16 100644
|
|
|
c2e930 |
--- a/lenses/updatedb.aug
|
|
|
c2e930 |
+++ b/lenses/updatedb.aug
|
|
|
c2e930 |
@@ -22,8 +22,6 @@ About: Examples
|
|
|
c2e930 |
|
|
|
c2e930 |
module UpdateDB =
|
|
|
c2e930 |
|
|
|
c2e930 |
-autoload xfm
|
|
|
c2e930 |
-
|
|
|
c2e930 |
(* View: list
|
|
|
c2e930 |
A list entry *)
|
|
|
c2e930 |
let list =
|
|
|
c2e930 |
@@ -41,9 +39,3 @@ let bool = [ key "PRUNE_BIND_MOUNTS" . Sep.space_equal
|
|
|
c2e930 |
(* View: lns
|
|
|
c2e930 |
The <UpdateDB> lens *)
|
|
|
c2e930 |
let lns = (Util.empty|Util.comment|list|bool)*
|
|
|
c2e930 |
-
|
|
|
c2e930 |
-(* Variable: filter
|
|
|
c2e930 |
- The filter *)
|
|
|
c2e930 |
-let filter = incl "/etc/updatedb.conf"
|
|
|
c2e930 |
-
|
|
|
c2e930 |
-let xfm = transform lns filter
|
|
|
c55e75 |
--
|
|
|
9f41aa |
2.24.1
|
|
|
c55e75 |
|