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.
Salix-Live-14.2 64bit Update Kernel Question
- zebedeeboss
- Posts: 2
- Joined: 13. May 2012, 08:39
Re: Salix-Live-14.2 64bit Update Kernel Question
Hi Atip,
Just update your grub config and it will pick it up
Regards Zeb...
Just update your grub config and it will pick it up
Code: Select all
sudo update-grub
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
x64 Laptop - i5-4200U - 8Gb RAM - Intel Integrated Graphics - 15.6" HD 1920x108
Re: Salix-Live-14.2 64bit Update Kernel Question
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.
Re: Salix-Live-14.2 64bit Update Kernel Question
You can upgrade the system using persistent but never upgrade the kernel in live editions. It will not work.
Re: Salix-Live-14.2 64bit Update Kernel Question
To upgrade the kernel additional work is needed.
While on live environment booting from usb with persistent.
Copy the code bellow and save it to a file named e.g. make_new_init+kernel_pack.sh
Run the script
To return to user one type
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
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.
While on live environment booting from usb with persistent.
Code: Select all
sudo slapt-get -u
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
Code: Select all
sh make_new_init+kernel_pack.sh
Code: Select all
exit
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
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
Re: Salix-Live-14.2 64bit Update Kernel Question
Thanks! Had no Internet connection for 3 months.
Monopol company refuses to fix problem.
Now hooked-up to neighbor via wifi-repeater. Works great.
Will work on it and report.
Monopol company refuses to fix problem.
Now hooked-up to neighbor via wifi-repeater. Works great.
Will work on it and report.
Re: Salix-Live-14.2 64bit Update Kernel Question
Great!
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!
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!
Re: Salix-Live-14.2 64bit Update Kernel Question
bottoms up.