Skip to main content

Cara Upgrade Kernel Linux di Slackware

Contoh kasus : Upgrade kernel dari versi 5.15.19 ke 5.15.80. Pastikan prosedur berikut dilakukan dalam lingkungan GUI dengan akun root. Agar mudah dalam melakukan copy command-nya di poin ke-2.

(1) Sebelum di upgrade kernelnya, jalankan dulu perintah berikut :

# /usr/share/mkinitrd/mkinitrd_command_generator.sh

Nanti akan ada rekomendasi command yang perlu dilakukan. 

mkinitrd -c -k 5.15.19 -f ext4 -r /dev/sda3 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-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:crc32c_generic:ext4 -u -o /boot/initrd.gz

Copy instruksi tersebut (simpan ke text editor) dan ubahlah versi kernelnya ke yang baru yaitu, dari 5.15.19 ke 5.15.80. Sehingga command-nya menjadi seperti berikut :

# mkinitrd -c -k 5.15.80 -f ext4 -r /dev/sda3 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-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:crc32c_generic:ext4 -u -o /boot/initrd.gz

(2) Upgrade kernel-nya dari 5.15.19 ke 5.15.80, dengan perintah # slackpkg upgrade-all.

(3) Setelah kernel terbaru (versi 5.15.80) sudah terinstall, baru ketik command berikut:

# mkinitrd -c -k 5.15.80 -f ext4 -r /dev/sda3 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-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:crc32c_generic:ext4 -u -o /boot/initrd.gz

<< yaitu command yang sudah disimpan ditext editor dari poin 2 diatas.

(4) Kemudian update grub-nya dengan cara :

grub-install --target=x86_64-efi --bootloader-id=Slackware --efi-directory=/boot/efi --removable

# grub-mkconfig -o /boot/grub/grub.cfg

(5) kemudian update eliloconfig -nya (klo kita pake elilo).

# eliloconfig

(6) reboot

Demikian.

Comments