Article 53W30 [current] setup: lilo&elilo&kernel-generic

[current] setup: lilo&elilo&kernel-generic

by
zerouno
from LinuxQuestions.org on (#53W30)
Hi.

At post-install time, setup does generate an initrd automatically using setup.01.mkinitrd
Then if you use an efi system setup.ll.eliloconfig try to copy the kernel-generic
Code:if [ -r $T_PX/boot/initrd.gz ]; then
cp $T_PX/boot/vmlinuz-generic $T_PX/boot/efi/EFI/Slackware/vmlinuz 1> /dev/null 2> /dev/nullIf you does not use an efi system, setup.liloconfig will install /boot/vmlinuz (by default the kernel huge at install-time)
Code:if [ -r $T_PX/vmlinuz ]; then
KERNEL=/vmlinuz
elif [ -r $T_PX/boot/vmlinuz ]; then
KERNEL=/boot/vmlinuzSo you have a generated but not used initrd.gz

Also liloconfig in expert mode does not allow to customize the image= row. Note that liloconfig is useful not only at install time.

Why not patch liloconfig to install kernel-generic if an initrd.gz exists, as eliloconfig does?

Another thing...
After install I can switch to kernel-generic creating the link /boot/vmlinuz -> vmlinuz-generic but wher I upgrade the kernel this link will be overwritten by the vmlinuz-huge-5.4.42
Also if I've a custom vmlinuz this will be removed.

I think the doinst.sh should be
Code:if [ ! -r boot/vmlinuz ];then
( cd boot ; rm -rf vmlinuz )
( cd boot ; ln -sf vmlinuz-huge vmlinuz )
fi(note, vmlinuz-huge, not vmlinuz-huge-5.4.42)

Thankyou.latest?d=yIl2AUoC8zA latest?i=UjHeKHDx0c0:SZ3yTo4f2vk:F7zBnMy latest?i=UjHeKHDx0c0:SZ3yTo4f2vk:V_sGLiP latest?d=qj6IDK7rITs latest?i=UjHeKHDx0c0:SZ3yTo4f2vk:gIN9vFwUjHeKHDx0c0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments