kernel installer script
Forum rules
Your own work only.
Your own work only.
kernel installer script
I wrote this a while ago, thinking it might stop some of the whining about bbq releases without rolling kernels by making installing new kernels slightly easier. The script attempts to build a list of all available kernels from your sources (and gives you the option of adding liquorix and siduction sources if you don't have them) and then presents that list in a dialog and allows you to choose one to install. At rhowaldt's suggestion, you can specify that you only want to see the rolling options, or you can see all available kernels. Joe tested it, and I just used it again this morning to install the 3.13 towo kernel. I hope someone finds it useful.
As always, there are probably better ways to do everything in this script. As Joe says "The complexity of the implementation is determined by the intended usage."
https://github.com/pidsley/codemangler/ ... get-kernel
As always, there are probably better ways to do everything in this script. As Joe says "The complexity of the implementation is determined by the intended usage."
https://github.com/pidsley/codemangler/ ... get-kernel
Re: kernel installer script
aaah nice, you released this now, good shit pidsley, and thanks for adding my suggestion to it :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
Re: kernel installer script
great one pids. should be included in future releases.
Work hard; Complain less
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: kernel installer script
thanks pids, will be included in the bbqmenu's system options :)
..gnutella..
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: kernel installer script
neato, proper scripting.
Thanks Pids.
Thanks Pids.
Re: kernel installer script
Cool one, thanks for this.
Re: kernel installer script
Where's the Like button?
-H
-H
"A human being should be able to... butcher a hog..." -Robert Heinlein
Re: kernel installer script
Looks very nice. smxi does this easily too, though.
Re: kernel installer script
There's always room to innovate. Remember Henry Ford didn't invent the car, nor the assembly line.
He just brought them together.
-Hinto
He just brought them together.
-Hinto
"A human being should be able to... butcher a hog..." -Robert Heinlein
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: kernel installer script
Heinz Hot Sauce vs. Dad's family recipe. I take the latter. ;) (Now guess which one pid's is)MrPink wrote:Looks very nice. smxi does this easily too, though.
..gnutella..
Re: kernel installer script
When pulling new kernels, I now use this script. It does exactly what it says on the box.
Re: kernel installer script
^ Same here.
- ChefIronBelly
- Approved BBQer
- Posts: 1044
- Joined: Mon Jan 13, 2014 6:01 am
- Location: Michigan
Re: kernel installer script
added to the tool kit +1
(1/1) Installing: LinuxBBQ...................................[69%]==============[/]
Re: kernel installer script
Good script, pidsley.
Nice style too.
One remark: installing a new kernel automatically triggers a grub-update.
No need to run an extra one.
I will be using this too.
Thanks
Nice style too.
One remark: installing a new kernel automatically triggers a grub-update.
No need to run an extra one.
I will be using this too.
Thanks
Connected. Take this REPL, brother, and may it serve you well.
Re: kernel installer script
Thank you for the reminder about update-grub. I realized this a few days ago and have now removed the update-grub code in the latest release on github. I might make it optional just in case. :)xaos52 wrote:Good script, pidsley.
Nice style too.
One remark: installing a new kernel automatically triggers a grub-update.
No need to run an extra one.
I will be using this too.
Thanks
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: kernel installer script
@xaos52: /etc/kernel/postinst.d/zz-update-grub
only if this (or a similar) script is existing the update-grub is triggered, so @pidsley: you can make a test if the file exists and let update-grub be called if the file does not exist.
only if this (or a similar) script is existing the update-grub is triggered, so @pidsley: you can make a test if the file exists and let update-grub be called if the file does not exist.
..gnutella..
Re: kernel installer script
Thanks bacon. Is this file always present in bbq spins (unless the user has deleted or renamed it)?
Re: kernel installer script
/etc/kernel/postinst.d/zz-update-grub is installed when you install grub- more precisely any of the existing grub packages.
If grub is installed on your system, any kernel install will trigger update-grub, so you don't have to re-run it.
if grub is not installed on your system and you do a kernel install, grub-install is not triggered, and should not be run manually either.
Conclusion: whether grub is installed or not, you should not run grub-install at the end of the script
If grub is installed on your system, any kernel install will trigger update-grub, so you don't have to re-run it.
if grub is not installed on your system and you do a kernel install, grub-install is not triggered, and should not be run manually either.
Conclusion: whether grub is installed or not, you should not run grub-install at the end of the script
Connected. Take this REPL, brother, and may it serve you well.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: kernel installer script
^Why *should the user not* run it? I'd say: if, then it should also run ../initramfs-tools. And if you say "it should not", I can point you to a bunch of threads in this and other forums that not every kernel upgrade runs these scripts ;)
..gnutella..
Re: kernel installer script
OK.
But asking to run it after it has just finished is ... not looking good.
Suggestion:
test if /boot/grub/grub.cfg is newer than tmpfile. If it is, grub-update has been run by the script and there is no need to ask the question to run it again.
Just trying to make it better than it is already. :)
But asking to run it after it has just finished is ... not looking good.
Suggestion:
test if /boot/grub/grub.cfg is newer than tmpfile. If it is, grub-update has been run by the script and there is no need to ask the question to run it again.
Just trying to make it better than it is already. :)
Connected. Take this REPL, brother, and may it serve you well.