Tiny Core Base > TCB Tips & Tricks
change kernel.tclocal in relative symbolic link
(1/1)
helasz:
In updating the kernel (& modules) I would find it useful if the symbolic link "kernel.tclocal" (created by sorter.sh) would be based on relative path instead of on absolute one. In this case "depmod -b ..." would not throw error message and in case there is something in that folder it would be included successfully in dep files. My suggested code would read :
cd ${BASEPATH}/lib/modules/${KERNEL}
ln -s "../../../usr/local/lib/modules/${KERNEL}/kernel" "kernel.tclocal"
curaga:
You're root already to have the correct ownership for the depmod-generated files, so a chroot would work too?
helasz:
Yes, certainly, but having a relative path will work in any circumstances. I do not insist however.
Navigation
[0] Message Index
Go to full version