[netcf-devel] [PATCH 1/2] Ignore backup files created by dpkg
Guido Günther
agx at sigxcpu.org
Tue Sep 11 08:25:14 UTC 2012
While this isn't strictly necessary for /etc/network/interfaces
(since it's not a conffile) the files in /etc/modprobe.d are
conffiles.
For dpkg's conffile handling see e.g.:
http://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/
---
.gitignore | 10 +++++-----
src/drv_debian.c | 6 ++++++
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/drv_debian.c b/src/drv_debian.c
index 04953e3..6c2dc79 100644
--- a/src/drv_debian.c
+++ b/src/drv_debian.c
@@ -67,6 +67,9 @@ static const struct augeas_pv augeas_xfm_common_pv[] = {
{ "/augeas/load/Interfaces/excl[6]", "*.rpmsave" },
{ "/augeas/load/Interfaces/excl[7]", "*.augnew" },
{ "/augeas/load/Interfaces/excl[8]", "*.augsave" },
+ { "/augeas/load/Interfaces/excl[9]", "*.dpkg-dist" },
+ { "/augeas/load/Interfaces/excl[10]", "*.dpkg-new" },
+ { "/augeas/load/Interfaces/excl[11]", "*.dpkg-old" },
/* modprobe config */
{ "/augeas/load/Modprobe/lens", "Modprobe.lns" },
{ "/augeas/load/Modprobe/incl[1]", "/etc/modprobe.d/*" },
@@ -76,6 +79,9 @@ static const struct augeas_pv augeas_xfm_common_pv[] = {
{ "/augeas/load/Modprobe/excl[3]", "*.rpmsave" },
{ "/augeas/load/Modprobe/excl[4]", "*.rpmnew" },
{ "/augeas/load/Modprobe/excl[5]", "*~" },
+ { "/augeas/load/Modprobe/excl[6]", "*.dpkg-dist" },
+ { "/augeas/load/Modprobe/excl[7]", "*.dpkg-new" },
+ { "/augeas/load/Modprobe/excl[8]", "*.dpkg-old" },
/* sysfs (choice entries from /class/net) */
{ "/augeas/load/Sysfs/lens", "Netcf.id" },
{ "/augeas/load/Sysfs/incl", "/sys/class/net/*/address" }
--
1.7.10.4
More information about the netcf-devel
mailing list