]> git.friedersdorff.com Git - max/kernel_upgrades.git/commitdiff
Use grub instead of lilo. master
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 12 Dec 2017 18:08:47 +0000 (18:08 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 12 Dec 2017 18:08:47 +0000 (18:08 +0000)
kernel_upgrade

index 0b489dc97b20a752b8e56be8df817a7fdafbf1ec..7a5adfb604acc480b1e56ad073ece286b31152dc 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 VERSION=$1
 #!/bin/sh
 VERSION=$1
+INSTALLED_VERSION=$2
 
 download="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${VERSION}.tar.xz"
 
 
 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                    
 
 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/*                                   
 
 echo "The following packages will need to be rebuilt:"
 grep -l "lib/modules/$(uname -r)" /var/log/packages/*