mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-23 07:18:37 +00:00
deleted kernel removal
This commit is contained in:
@@ -486,11 +486,11 @@ determine_kernel_variant
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
echo "===========remove unused kernels in rescue system========="
|
#echo "===========remove unused kernels in rescue system========="
|
||||||
for kver in $(find /lib/modules/* -maxdepth 0 -type d | grep -v "$(uname -r)" | cut -s -d "/" -f 4); do
|
#for kver in $(find /lib/modules/* -maxdepth 0 -type d | grep -v "$(uname -r)" | cut -s -d "/" -f 4); do
|
||||||
apt purge --yes "linux-headers-$kver"
|
# apt purge --yes "linux-headers-$kver"
|
||||||
apt purge --yes "linux-image-$kver"
|
# apt purge --yes "linux-image-$kver"
|
||||||
done
|
#done
|
||||||
|
|
||||||
echo "======= installing zfs on rescue system =========="
|
echo "======= installing zfs on rescue system =========="
|
||||||
echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections
|
echo "zfs-dkms zfs-dkms/note-incompatible-licenses note true" | debconf-set-selections
|
||||||
|
|||||||
Reference in New Issue
Block a user