|
|
|
@ -20,18 +20,16 @@ check_initramfs() { |
|
|
|
|
if [ $(grep -o "\." <<<"$LINUX_VER" | wc -l) -eq 1 ]; then |
|
|
|
|
KERNEL_VERSION="${LINUX_VER}.0-${KERNEL_VERSION:(-1)}" |
|
|
|
|
fi |
|
|
|
|
echo $LINUX_VER |
|
|
|
|
echo $KERNEL_VERSION |
|
|
|
|
depmod $(basename $(find /usr/lib/modules -type d -iname $KERNEL_VERSION\*)) |
|
|
|
|
# MK_CONF=$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo $?); |
|
|
|
|
# if [[ $MK_CONF == '0' ]]; then |
|
|
|
|
# if [[ $1 == 'remove' ]]; then |
|
|
|
|
# echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"' |
|
|
|
|
# echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the ' |
|
|
|
|
# echo '>>> "hooks" list and then regenerate the initial ramdisk.' |
|
|
|
|
# else |
|
|
|
|
# echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." |
|
|
|
|
# mkinitcpio -p linux |
|
|
|
|
# fi |
|
|
|
|
# fi |
|
|
|
|
MK_CONF=$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo $?); |
|
|
|
|
if [[ $MK_CONF == '0' ]]; then |
|
|
|
|
if [[ $1 == 'remove' ]]; then |
|
|
|
|
echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"' |
|
|
|
|
echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the ' |
|
|
|
|
echo '>>> "hooks" list and then regenerate the initial ramdisk.' |
|
|
|
|
else |
|
|
|
|
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." |
|
|
|
|
mkinitcpio -p linux |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|