[SOLVED] push button upgrade of a machine's kernel
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
the /usr/share/mkintrid script is the real issue it reads the running kernel so this is not going to help me. Been here before.
I am sure you can figure it out like I did.
re read your script now. and sorry your running the sbin script like I do sorry I miss read your script.
Last edited by Drakeo; 10-29-2016 at 05:52 PM.
Reason: oops
alo,
self automation of the kernel upgrade is useful to me, maybe it is useful to others: ie moving from 4.4.14 to 4.4.28.
Deliberate limitations requires to stick to the kernel base shipped with 14.2.
No interest in diverging to something different than 4.4.x
The script below can be made better as I am not a software pal
hi _peter, thank you very much for sharing. This will save me from building my own kernel, in the light of the dirty cow. I dont want to sound too demanding but an additional how-to-apply-this-script will help many newbies like me. Would it be something like saving it to a file, place it to /etc/rc.d/rc.local/, make it executable?
thanks SCerovec, yes handling the initrd options in variable(s) is probably best, not even using uuid yet
thanks ttk for the typo catch
imjustkillingtime, inside /usr/src I run the thing like this
Code:
./kernel.sh 4.4.28
purposely executing it on demand rather than within /etc/rc.d, well it's not so automated after all
All this mkinitrd modules -m are still cryptic to me depending on the machine hw
I have been lost on linux mint and ubuntu to reproduce this, grub is not complicated but lilo with slackware feels right.
I think you probably should put a disclaimer on your script and not present it as an "automated kernel upgrade" for "newbies".
I'm sure the script works fine on your own system, but it makes too many general assumptions.
To create the initial ramdisk (and the lilo section), why not rely on mkinitrd_command_generator.sh instead?
Props for verifying kernel signatures though, that's rarely ever mentioned and really useful (especially if you have the public key).
@_peter Thank you very much for the script. Just my two cent: I would find this much more useful if it provided installable Slackware .txz packages (like Pat distributes them upon kernel update) rather than directly writing in system directories.
yes kazzan and SCerovec, using the unique mkinitrd_command_generator.sh and variables from /etc/mkinitrd.conf instead of hard-wiring them would be better, will try.
tramni1980, my intend is to push a button and get my kernel and lilo upgraded outside of the installpkg tools. Maybe i can wrap the script outputs to a txz file rather than individual files, will try.
I only want to run the stable official slackware release not the current one where Patrick already takes care of things: for instance not all kernels updates are needed or useful along the life of the stable release (14.2)
Perhaps if you donated that 2c for each time someone used the script?
Bandwidth and server resources have to be paid for by someone at some point, just because you don't know who it is does not make it cost zero for them to provide the service.
As an example from this very forum, Alien Bob had to look at alternative hosting because of the bandwidth requirements of his server.
Be kind to the net, where there is a simple, easy, way to reduce your impact on services provided to you for free, to do anything else is, at best, inconsiderate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.