Skip to content

Commit 0f15162

Browse files
committed
Add Werk 18923 FIX Agent bakery .deb packages: Don't clean up /var/lib/check_mk_agent
CMK-28451 Change-Id: Id85d740e6a6cbcf8c8c925e56f92d780fe6c6449
1 parent 7ed4530 commit 0f15162

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

.werks/18923.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[//]: # (werk v2)
2+
# Agent bakery .deb packages: Don't clean up /var/lib/check_mk_agent
3+
4+
key | value
5+
---------- | ---
6+
date | 2025-12-10T08:57:49+00:00
7+
version | 2.5.0b1
8+
class | fix
9+
edition | cee
10+
component | checks
11+
level | 1
12+
compatible | no
13+
14+
Agent bakery dpkg (`.deb`) packages for Linux previously removed the directory `/var/lib/check_mk_agent` on uninstallation.
15+
16+
With this Werk, we stop removing this directory explicitly.
17+
18+
Notes:
19+
20+
* Only bakery dpkg packages deleted this directory. All other packages, including the prepackaged dpkg package that comes with the Checkmk installation, left it behind.
21+
* This only ever affected the default `/var/lib/check_mk_agent` directory. If the _var_ directory was configured to some non-standard path with the _Installation paths for agent files (Linux, UNIX) (deprecated)_ ruleset, it never was deleted explicitly on uninstallation.
22+
* It is common and expected behavior of dpkg packages to leave variable data behind. More precisely: If a directory is pre-existing before installation and a dpkg package would create it, it won't be deleted on uninstallation. If the dpkg package happens to create a directory, it will only remove it on uninstallation if all files and directories underneath already came with the package. Based on these rules, the `/var/lib/check_mk_agent` directory is usually left behind on dpkg uninstallation.
23+
24+
If you currently rely on the automatic removal of the package's variable data, please update your workflow or scripts.

tests/qa-test-data

0 commit comments

Comments
 (0)