zfs-builds-mm/pkgs-0.8.2/replace_packages_ubuntu

14 lines
494 B
Text
Raw Normal View History

2019-10-24 23:13:56 +02:00
#!/bin/bash
apt update
apt-get install python3 python3-dev python3-setuptools python3-cffi dkms python3-distutils gdebi -y
apt remove "zfs*" -y
2020-07-10 09:47:56 +02:00
apt remove "zpool*" -y
apt remove "*zfs*" -y
apt remove "*zpool*" -y
2019-10-24 23:13:56 +02:00
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
2020-03-11 22:46:08 +01:00
echo "$(grep -ve "^zfs$" /etc/modules-load.d/modules.conf)" > /etc/modules-load.d/modules.conf
2019-10-24 23:13:56 +02:00
echo zfs >> /etc/modules-load.d/modules.conf