File: libzfs7linux.postinst

package info (click to toggle)
zfs-linux 2.4.0-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 71,616 kB
  • sloc: ansic: 397,684; sh: 70,195; asm: 48,744; python: 8,163; makefile: 5,212; perl: 859
file content (16 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

if test "$1" = configure; then
	# DEP17 P1 M8. Clean up after libzfs6linux.preinst. This code should be
	# removed once the diversions are deleted via postinst.
	# see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1092598
	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" --remove "/lib/#DEB_HOST_MULTIARCH#/lib$lib"
	done
fi

#DEBHELPER#

exit 0