On 21/08/2021 17:45, Eric Valette wrote:
On 21/08/2021 17:43, Clint Adams wrote:
On Sat, Aug 21, 2021 at 05:34:58PM +0200, Eric Valette wrote:
root@nas2:/usr/src/linux# ls -l /sbin/installkernel <== manually copied
-rwxr-xr-x 1 root root 2659 21 août  17:24 /sbin/installkernel
root@nas2:/usr/src/linux# ls -l /usr/sbin/installkernel
-rwxr-xr-x 1 root root 2659 20 août  13:31 /usr/sbin/installkernel

I suspect  the link is a hard link that does not work on different filesystem use -s

No, there is no link; unmerged /usr won't be supported for bookworm.



But upstream kernel look explicitely in /sbin so there will be a problem...

/usr/src/linux-zotac-h67itx# sh -x /usr/src/linux-5.10.7/arch/x86/boot/install.sh 5.10.60 arch/x86/boot/bzImage System.map "/boot"
+ verify arch/x86/boot/bzImage
+ '[' '!' -f arch/x86/boot/bzImage ']'
+ verify System.map
+ '[' '!' -f System.map ']'
+ '[' -x /root/bin/installkernel ']'
+ '[' -x /sbin/installkernel ']'
+ exec /sbin/installkernel 5.10.60 arch/x86/boot/bzImage System.map /boot

removing the link in /sbin gives:

sh -x /usr/src/linux-5.10.7/arch/x86/boot/install.sh 5.10.60 arch/x86/boot/bzImage System.map "/boot"
+ verify arch/x86/boot/bzImage
+ '[' '!' -f arch/x86/boot/bzImage ']'
+ verify System.map
+ '[' '!' -f System.map ']'
+ '[' -x /root/bin/ ']'
+ '[' -x /sbin/ ']'
+ '[' -f /boot/vmlinuz ']'
+ mv /boot/vmlinuz /boot/vmlinuz.old
+ '[' -f /boot/System.map ']'
+ mv /boot/System.map /boot/System.old
+ cat arch/x86/boot/bzImage
+ cp System.map /boot/System.map
+ '[' -x /sbin/lilo ']'
+ '[' -x /etc/lilo/install ']'
+ sync
+ echo 'Cannot find LILO.'
Cannot find LILO.

-- eric

Reply via email to