[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.


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.