Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Create package of deblobbed kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 568
Location: Ásgarðr

PostPosted: Thu Apr 08, 2021 6:16 pm    Post subject: Create package of deblobbed kernel Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum