Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /usr/src
- wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4-rc2.tar.xz
- wget https://git.kernel.org/torvalds/t/linux-5.4-rc2.tar.gz
- unxz linux-5.4-rc2.tar.xz
- tar -xzvf linux-5.4-rc2.tar.gz
- tar -xvf linux-5.4-rc2.tar
- cd linux-5.4-rc2
- make clean && make mrproper
- zcat /proc/config.gz > .config
- make olddefconfig
- make -j9 # maybe j7 id you're already running a VM
- make modules_install
- #NOTE DEPMOD 5.4-rc2 - VERY IMPORTANT!
- cp arch/x86/boot/bzImage /boot/vmlinuz-vanilla-5.4-rc2
- cp System.map /boot/System.map-vanilla-5.4-rc2
- cp .config /boot/config-vanilla-5.4-rc2
- cd /boot
- rm System.map
- ln -s System.map-vanilla-5.4-rc2 System.map
- #/usr/share/mkinitrd/mkinitrd_command_generator.sh
- mkinitrd -c -k 5.4.0-rc2 -f ext4 -r /dev/sda2 -m usb-storage:ehci-hcd:ehci-pci:xhci-pci:ohci-pci:xhci-hcd:uhci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c-intel:ext4 -u -o /boot/initrd-vanilla.gz
- rm config
- ln -s config-vanilla-5.4-rc2 config
- rm vmlinuz-vanilla
- ln -s vmlinuz-vanilla-5.4-rc2 vmlinuz-vanilla
- #doctor up lilo
- cat /etc/lilo.conf
- ls -l /boot/vmlinuz-vanilla
- ls -l /boot/initrd-vanilla.gz
- # Linux bootable partition config begins
- default = Slackware
- image = /boot/vmlinuz
- label = Linux
- root = /dev/sda2
- read-only
- image = /boot/vmlinuz-vanilla
- label = Vanilla
- initrd = /boot/initrd-vanilla.gz
- root = /dev/sda2
- read-only
- image = /boot/vmlinuz-generic
- label = Slackware
- initrd = /boot/initrd.gz
- root = /dev/sda2
- read-only
- # Linux bootable partition config ends
- #Make sure all parts are there
- #Then re-run lilo
- lilo -v
Advertisement
Add Comment
Please, Sign In to add comment