File: libzfs6linux.preinst

package info (click to toggle)
zfs-linux 2.3.2-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid, trixie
  • size: 71,496 kB
  • sloc: ansic: 392,648; sh: 67,208; asm: 47,693; python: 8,160; makefile: 5,100; perl: 839; sed: 41
file content (16 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if test "$1" = install -o "$1" = upgrade; then
	# DEP17 P1 M8: Divert aliased files to avoid their removal deleting the
	# moved ones. These diversions should be removed via postinst once
	# trixie is released.
	for lib in zfs_core.so.3 zfs_core.so.3.0.0; do
		dpkg-divert --package libzfs6linux --no-rename --divert "/lib/#DEB_HOST_MULTIARCH#/lib$lib.usr-is-merged" --add "/lib/#DEB_HOST_MULTIARCH#/lib$lib"
	done
fi

#DEBHELPER#

exit 0