Nice! (I always edit the thing by hand) i would recommend to use mock in stead of rpmbuild -ba, but that's a minor thing here.
If you want to spend some brain cycles on this, I recently found a rather annoying bug in the rpm. the bug is in the (un)install scripts. Installation goes fine, but on remove it does the wrong thing. (and as update is actually an install followed by a remove, updates don't work as expected.) point is that there are files called kernel-<version> in /boot and that the one to be used is to be copied to kernel.img. on install this works well, we know what kernel was installed and copy that to kernel.img. on remove however we should make sure that one of the kernels, that is still there, is copied to kernel.img (people might want to remove the latest kernel). I now have a script like this: cp $(ls -1 /boot/kernel-*-*|tail -1) /boot/kernel.img (it should copy the latest kernel still present to kernel.img) where this goes wrong is if the latest kernel is not the latest according to sort. for instance on of my pi's shows: # ls -1 /boot/kernel-*-* /boot/kernel-4.0.6+-1.20150626git856e2e1.img /boot/kernel-4.1.11+-1.20151024git4047fe2.img /boot/kernel-4.1.6+-1.20150904gitfc95251.img (sort thinks that 4.1.6 is 'newer' than 4.1.11) Probably the nice way is to script something around 'kernel-install' (from systemd). But I did not find time to look at it. Jacco On 21-12-15 22:55, Bjarne Saltbaek wrote: > Hi > > I have piggybagged Jacco's Raspberry Pi kernel SRPM into an (almost) > perfect script. > Try it if you want to use the latest Raspberry Pi kernel with RSEL6. > (script for making the raspberry2 RPM should be easy to merge from this). > > see > http://www.saltbaek.dk/dokuwiki/doku.php?id=newest_rasberry_pi_kernel_for_redsleeve > > Comments are welcome :) > > BR, > Bjarne > > _______________________________________________ > users mailing list > [email protected] > https://lists.redsleeve.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] https://lists.redsleeve.org/mailman/listinfo/users
