summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2023-09-16 12:34:48 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2023-09-16 12:37:31 +0200
commit99c888b5eabbb7008bf4451bc62c277f28bb925f (patch)
tree2375ab845a8c66a368bae090b799d819287ee589 /CMake
parent52dd18670bf7d22ecf234141d3c7b7b9f67c6fa3 (diff)
Only accept installs of usrmerge on unmerged-usr systems
As of bookworm, merged-usr is mandatory, and people got caught in the crosshairs of the dpkg fsys-unmessusr debacle and inadvertently reverted back to an unmerged configuration and continue to remain on an unsupported system unknowingly. Help them by erroring out when they are installing packages on /, they are not in a chroot, and a usrmerge package is available.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMake/config.h.in b/CMake/config.h.in
index e875c3735..65f983fa9 100644
--- a/CMake/config.h.in
+++ b/CMake/config.h.in
@@ -79,3 +79,6 @@
/* Group of the root user */
#cmakedefine ROOT_GROUP "${ROOT_GROUP}"
+
+/* Whether to check for and require merged usr if a usrmerge package is available. */
+#cmakedefine REQUIRE_MERGED_USR