From: Maximilian Friedersdorff Date: Tue, 12 Dec 2017 18:08:47 +0000 (+0000) Subject: Use grub instead of lilo. X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;p=max%2Fkernel_upgrades.git Use grub instead of lilo. --- diff --git a/kernel_upgrade b/kernel_upgrade index 0b489dc..7a5adfb 100755 --- a/kernel_upgrade +++ b/kernel_upgrade @@ -1,5 +1,6 @@ #!/bin/sh VERSION=$1 +INSTALLED_VERSION=$2 download="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION}.tar.xz" @@ -17,15 +18,14 @@ bash make -j8 bzImage modules make modules_install -cp arch/x86/boot/bzImage /boot/vmlinuz-${VERSION}-maxf130 -cp .config /boot/config-${VERSION}-maxf130 -cp System.map /boot/System.map-${VERSION}-maxf130 +cp arch/x86/boot/bzImage /boot/vmlinuz-${INSTALLED_VERSION}-maxf130 +cp .config /boot/config-${INSTALLED_VERSION}-maxf130 +cp System.map /boot/System.map-${INSTALLED_VERSION}-maxf130 -dkms autoinstall -k ${VERSION}-maxf130 +dkms autoinstall -k ${INSTALLED_VERSION}-maxf130 -mkinitrd -F /etc/mkinitrd.conf -k ${VERSION}-maxf130 -o /boot/initrd-${VERSION}-maxf130.gz -vim /etc/lilo.conf -lilo +mkinitrd -F /etc/mkinitrd.conf -k ${INSTALLED_VERSION}-maxf130 -o /boot/initrd-${INSTALLED_VERSION}-maxf130.gz +grub-mkconfig -o /boot/grub/grub.cfg echo "The following packages will need to be rebuilt:" grep -l "lib/modules/$(uname -r)" /var/log/packages/*