]> git.proxmox.com Git - pve-cluster.git/commitdiff
sysctl snippet: move to /usr/lib and prefix with 10-
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 11 Nov 2021 15:42:09 +0000 (16:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 16:16:52 +0000 (17:16 +0100)
following best-practices according to `sysctl.d(5)`:
* Packages should install their configuration files in /usr/lib/ ...
* It is recommended to prefix all filenames with a two-digit number
  and a dash ...

the conffile removal is inspired by how it was done in `procps` (one
of the few packages in the debian repository, which did this
transition) and by following `dpkg-maintscript-helper(1)` and
`deb-conffiles(5)` (the former recommending the latter)

The choice of 10- as prefix is due to pve-container shipping its
snippet with that prefix already. other packages use higher numbers
(e.g. systemd - 50-)

Tested on 2 VMs (one with modifications, the other without) - worked
as advertised (the modified file was kept as
/etc/sysctl.d/pve.conf.dpkg-old and the upgrade notified me of the
change)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian/conffiles [new file with mode: 0644]
debian/pve-cluster.install
debian/sysctl.d/10-pve.conf [new file with mode: 0644]
debian/sysctl.d/pve.conf [deleted file]

diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644 (file)
index 0000000..ef0558e
--- /dev/null
@@ -0,0 +1 @@
+remove-on-upgrade /etc/sysctl.d/pve.conf
index 407972a3ac2c20244bc5fe54825075a5add8a59b..f66cd0662a8339861331ddad9467f242a4881560 100644 (file)
@@ -1,4 +1,4 @@
-debian/sysctl.d/pve.conf etc/sysctl.d
+debian/sysctl.d/10-pve.conf usr/lib/sysctl.d
 usr/bin/create_pmxcfs_db
 usr/bin/pmxcfs
 usr/lib/
diff --git a/debian/sysctl.d/10-pve.conf b/debian/sysctl.d/10-pve.conf
new file mode 100644 (file)
index 0000000..929698f
--- /dev/null
@@ -0,0 +1,5 @@
+net.bridge.bridge-nf-call-ip6tables = 0
+net.bridge.bridge-nf-call-iptables = 0
+net.bridge.bridge-nf-call-arptables = 0
+net.bridge.bridge-nf-filter-vlan-tagged = 0
+fs.aio-max-nr = 1048576
diff --git a/debian/sysctl.d/pve.conf b/debian/sysctl.d/pve.conf
deleted file mode 100644 (file)
index 929698f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-net.bridge.bridge-nf-call-ip6tables = 0
-net.bridge.bridge-nf-call-iptables = 0
-net.bridge.bridge-nf-call-arptables = 0
-net.bridge.bridge-nf-filter-vlan-tagged = 0
-fs.aio-max-nr = 1048576