Salix-Live-14.2 64bit Update Kernel Question

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Salix-Live-14.2 64bit Update Kernel Question

Post by Atip »

I made an update with persistent and it included the kernel-4.4.28.

How do get to boot that this kernel is used? The booting still goes into kernel-4.4.19.

I can see in system that the new kernel had been downloaded.
User avatar
zebedeeboss
Posts: 2
Joined: 13. May 2012, 08:39

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by zebedeeboss »

Hi Atip,
Just update your grub config and it will pick it up

Code: Select all

sudo update-grub
Regards Zeb...
x64 Desktop - i7-6700K CPU @ 4.00GHz - 32Gb RAM - NVIDIA GTX 960 4Gb - 34" WQHD 3440x1440
x64 Laptop - i5-4200U - 8Gb RAM - Intel Integrated Graphics - 15.6" HD 1920x108
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by mimosa »

I don't think that will work, because the kernel needs to be in /boot, but the persistent files are only "overlayed" on top of the files in the image after boot.
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by djemos »

You can upgrade the system using persistent but never upgrade the kernel in live editions. It will not work.
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by djemos »

To upgrade the kernel additional work is needed.
While on live environment booting from usb with persistent.

Code: Select all

sudo slapt-get -u
Copy the code bellow and save it to a file named e.g. make_new_init+kernel_pack.sh

Code: Select all

sudo slapt-get -i --reinstall kernel-huge kernel-modules
sudo rm -rf /tmp/work
mkdir -p /tmp/work/new_kernel
cd /tmp/work
sudo spkg -i --root=/tmp/work/new_kernel /var/slapt-get/patches/packages/linux-4.4.38/kernel-huge-4.4.38-x86_64-1.txz
sudo spkg -i --root=/tmp/work/new_kernel /var/slapt-get/patches/packages/linux-4.4.38/kernel-modules-4.4.38-x86_64-1.txz
sudo mksquashfs new_kernel 05-kernel.slm -comp xz -b 1M

sudo mkinitrd -c -o /tmp/initrd.gz -s /tmp/initrd-tree -k 4.4.38 -m "squashfs:overlay:loop:xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:usb-storage:hid:usbhid:i2c-hid:hid-generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:ext3:ext4:isofs:nls_cp437:nls_iso8859-1"

sudo rm -f /tmp/initrd-tree/{initrd-name,keymap,luksdev,resumedev,rootfs,rootdev,wait-for-root}
sudo cp /usr/share/slackware-live/{init,keymaps} /tmp/initrd-tree/
sudo chmod +x /tmp/initrd-tree/init
sudo cp /usr/sbin/build-slackware-live.sh /tmp/initrd-tree/
(
cd /tmp/initrd-tree
sudo su
find . | cpio -o -H newc 2>/dev/null | gzip -9c > /tmp/work/initrd.gz
)
cd /tmp/work
Run the script

Code: Select all

sh make_new_init+kernel_pack.sh
To return to user one type

Code: Select all

exit
Now copy the following files somewhere on hard disk or in another usb. You will need them to copy to LIVE usb later.
Create a folder

Code: Select all

cd ~/
rm -rf ~/work_files
mkdir work_files
cp /tmp/work/initrd.gz work_files
cp /tmp/work/05-kernel.slm work_files
cp /tmp/work/new_kernel/boot/vmlinuz work_files
cp -R ~/work_files  somewhere-to-hard-disk
Reboot to your hard disk system
cd work_files
Copy initrd.gz to usb boot folder to replace the previous one
Copy vmlinuz to usb boot folder to replace the previous one
Copy 05-kernel.slm to usb boot/modules folder to replace the previous one

Copy initrd.gz to usb EFI/BOOT folder to replace the previous one
Copy vmlinuz to usb EFI/BOOT folder to replace the previous one

Reboot and boot with live USB

I wrote this post from salix64 live 14.2 with persistent running 4.4.38 kernel to test the above.

Code: Select all

one[~]$ uname -a
Linux salixlive 4.4.38 #2 SMP Sun Dec 11 16:18:36 CST 2016 x86_64 Intel(R) Core(TM) i3-4030U CPU @ 1.90GHz GenuineIntel GNU/Linux
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by Atip »

Thanks! Had no Internet connection for 3 months. :(
Monopol company refuses to fix problem. :twisted:
Now hooked-up to neighbor via wifi-repeater. Works great.

Will work on it and report.
User avatar
Atip
Posts: 539
Joined: 5. Jun 2011, 04:27

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by Atip »

Great! :D

one[~]$ uname -a
Linux salixlive 4.4.38 #2 SMP Sun Dec 11 16:18:36 CST 2016 x86_64 Pentium(R) Dual-Core CPU E5400 @ 2.70GHz GenuineIntel GNU/Linux

I will drink to your health djemos when I have my beer this afternoon.

Many thanks!
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix-Live-14.2 64bit Update Kernel Question

Post by djemos »

bottoms up. :)
Post Reply