sdauth Guru
Joined: 19 Sep 2018 Posts: 568 Location: Ásgarðr
|
Posted: Thu Apr 08, 2021 6:16 pm Post subject: Create package of deblobbed kernel |
|
|
Hi,
I have 3 gentoo boxes running deblobbed kernel with sys-kernel/gentoo-sources
On each box, I manually apply the deblob script ( https://www.fsfla.org/svn/fsfla/software/linux-libre/ )
Is there a way to only apply the deblob script on the "main" box and create a package with the modified content of /usr/src/linux for the two others ? If yes, how to do that ?
I could of course rsync /usr/src/linux to the other boxes once it has been applied but I was wondering if there was a way to create my custom deblobbed gentoo-sources instead ?
Thanks
EDIT : I found a temporary solution.
On the main box, once deblob script has been applied to /usr/src/linux, I create a tar.gz of it.
Code: | tar -cvzf linux-5.4.109-gentoo-deblobbed.tar.gz /usr/src/linux |
then I move that tar.gz to /usr/src/kernels/deblobbed, which is shared on my LAN with nginx.
And finally on the targets, I created a post_pkg_postinst() function in /etc/portage/env/sys-kernel/gentoo-sources so when gentoo-sources is emerged on them it automatically fetches the deblobbled tar.gz and extract its content to /usr/src/linux.
So, similar to what rsync would have done but much better since I keep a clean archive of deblobbed kernel ready to be extracted. |
|