Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about Custom Kernel Header post install fix script on github #1

Open
Vdragon opened this issue Aug 23, 2012 · 1 comment
Open
Labels

Comments

@Vdragon
Copy link
Owner

Vdragon commented Aug 23, 2012

Hi,

I came across your script on https://github.com/Vdragon/Custom-kernel-header-post-install-fix-link-script but I am not sure on how to use it.

I would like to fix the /lib/modules//source and build symlinks to be fixed when I install the linux-headers package. I think your script does that but I am not sure of where to install it. Could you guide me a bit please ?

Thanks a lot.

@Vdragon
Copy link
Owner Author

Vdragon commented Aug 23, 2012

The script fix the following condition:
When installing a custom kernel package, a message printed as following:

Hmm. The package shipped with a symbolic link /lib/modules//<"source" or "build">
However, I can not read the target: file not found
Therefore, I am deleting /lib/modules//<"source" or "build">

And the (third party) kernel modules can't be built because the symbolic link /lib/modules/「custom kernel version」/build doesn't pointed to /usr/src/「custom kernel version」 or missing.

The script provided here currently replace the symbolic link with a correct one.

How to use:
1.boot using the custom kernel with its version you want to fix
2.download (or clone) the script
3.make sure if the script file "Fix_link.sh" has "executable(x)" attribute triggered
4.execute the script (probably with administrative rights, or add "sudo" to the start of the command)
example: sudo bash Shell_scripts/Fix_link.sh
5.rebuild the (third party) kernel modules if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant