WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: change kernel.tclocal in relative symbolic link  (Read 4064 times)

Offline helasz

  • Newbie
  • *
  • Posts: 36
change kernel.tclocal in relative symbolic link
« on: October 08, 2012, 06: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"

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: change kernel.tclocal in relative symbolic link
« Reply #1 on: October 08, 2012, 09:49:47 AM »
You're root already to have the correct ownership for the depmod-generated files, so a chroot would work too?
The only barriers that can stop you are the ones you create yourself.

Offline helasz

  • Newbie
  • *
  • Posts: 36
Re: change kernel.tclocal in relative symbolic link
« Reply #2 on: October 09, 2012, 02:07:04 AM »
Yes, certainly, but having a relative path will work in any circumstances. I do not insist however.