Re: if_igb.ko symbolic link generation is still messed up in that it hard wires the path at installkernel time, messing up copying to other places

From: Simon J. Gerraty <sjg_at_juniper.net>
Date: Sat, 9 Sep 2017 15:31:50 -0700
Mark Millard <markmi_at_dsl-only.net> wrote:
> # ls -lTt /media/boot/kernel/if_igb.ko /mnt/boot/kerndb/if_igb.ko
> lrwxr-xr-x  1 root  wheel  25 Sep  8 22:47:36 2017 /mnt/boot/kerndb/if_igb.ko -> /mnt/boot/kernel/if_em.ko
> lrwxr-xr-x  1 root  wheel  68 Sep  6 20:27:20 2017 /media/boot/kernel/if_igb.ko -> /usr/obj/DESTDIRs/clang-cortexA53-installkernel/boot/kernel/if_em.ko
> 
> In both of these cases the /mnt and /usr/obj/DESTDIRs/ prefixes
> would not exist for booting the PINE64 that the USB SSD is for:
> so file not found if a usage attempt is made.

Yes, when making symlinks in presence of DESTDIR, the src should have
$DESTDIR removed - the following should usually be safe:

ln -s ${src#$DESTDIR} $DESTDIR${target#$DESTDIR}
Received on Sat Sep 09 2017 - 20:32:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:13 UTC