mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
4d631a509d
Currently, the Debian packages are generated from ALIEN that converts RPMs to Debian packages. This commit adds native Debian packaging for Debian based systems. This packaging is a fork of Debian zfs-linux 2.1.6-2 release. (source: https://salsa.debian.org/zfsonlinux-team/zfs) Some updates have been made to keep the footprint minimal that include removing the tests, translation files, patches directory etc. All credits go to Debian ZFS on Linux Packaging Team. For copyright information, please refer to contrib/debian/copyright. scripts/debian-packaging.sh can be used to invoke the build. Reviewed-by: Mo Zhou <cdluminate@gmail.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Umer Saleem <usaleem@ixsystems.com> Closes #13451
21 lines
511 B
Bash
21 lines
511 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
zedd="/usr/lib/zfs-linux/zed.d"
|
|
etcd="/etc/zfs/zed.d"
|
|
|
|
# enable all default zedlets that are not overridden
|
|
while read -r file ; do
|
|
etcfile="${etcd}/${file}"
|
|
[ -e "${etcfile}" ] && continue
|
|
ln -sfT "${zedd}/${file}" "${etcfile}"
|
|
done < "${zedd}/DEFAULT-ENABLED"
|
|
|
|
# remove the overrides created in prerm
|
|
find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete
|
|
# remove any dangling symlinks to old zedlets
|
|
find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l -delete
|
|
|
|
#DEBHELPER#
|
|
|