zfs-builds-mm/pkgs-2.0.0-rc4/replace_packages_ubuntu

15 lines
533 B
Text
Raw Normal View History

2020-10-22 14:20:35 +02:00
#!/bin/bash
apt update
apt-get install python3 python3-dev python3-setuptools python3-cffi dkms python3-distutils gdebi -y
apt remove zfs libuutil1 libnvpair1 -y
apt remove "zfs*" -y
apt remove "zpool*" -y
apt remove "*zfs*" -y
apt remove "*zpool*" -y
apt autoremove -y
for file in *$1*.deb; do sudo gdebi -q --non-interactive $file; done
cp zfSnap /usr/sbin/zfSnap
chmod 755 /usr/sbin/zfSnap
echo "$(grep -ve "^zfs$" /etc/modules-load.d/modules.conf)" > /etc/modules-load.d/modules.conf
echo zfs >> /etc/modules-load.d/modules.conf