summaryrefslogtreecommitdiffstats
path: root/debian/preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:38:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:38:42 +0000
commit59d817986e6c6a05ff03b79c8aed54685f3318fd (patch)
treeaca9f6a8b98a978dce023559ccea1cfe05e08f7b /debian/preinst
parentMerging upstream version 13.3. (diff)
downloadbase-files-59d817986e6c6a05ff03b79c8aed54685f3318fd.tar.xz
base-files-59d817986e6c6a05ff03b79c8aed54685f3318fd.zip
Merging debian version 13.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/preinst')
-rw-r--r--debian/preinst32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst
new file mode 100644
index 0000000..b657de5
--- /dev/null
+++ b/debian/preinst
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
+ for d in bin lib lib32 lib64 libo32 lib64 sbin; do
+ if [ -d "$DPKG_ROOT/$d" ] && [ ! -L "$DPKG_ROOT/$d" ]; then
+ cat <<EOF
+
+
+******************************************************************************
+*
+* The base-files package cannot be installed because this system has a
+* split /usr.
+*
+* Please install the usrmerge package to convert this system to merged-/usr.
+*
+* For more information please read https://wiki.debian.org/UsrMerge.
+*
+******************************************************************************
+
+
+EOF
+ exit 1
+ fi
+ done
+ for d in #USR_MERGE_MULTILIB#; do
+ # Install DEP17 M4 protective diversions
+ dpkg-divert --quiet --package base-files --add --no-rename --divert "/.$d.usr-is-merged" "/$d"
+ done
+fi
+
+#DEBHELPER#