Tiny Core Linux

Tiny Core Base => TCB Tips & Tricks => Topic started by: helasz on October 08, 2012, 09:35:59 AM

Title: change kernel.tclocal in relative symbolic link
Post by: helasz on October 08, 2012, 09:35:59 AM
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"
Title: Re: change kernel.tclocal in relative symbolic link
Post by: curaga on October 08, 2012, 12:49:47 PM
You're root already to have the correct ownership for the depmod-generated files, so a chroot would work too?
Title: Re: change kernel.tclocal in relative symbolic link
Post by: helasz on October 09, 2012, 05:07:04 AM
Yes, certainly, but having a relative path will work in any circumstances. I do not insist however.