Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Now, I want to create RPM of above data. so, whenever I install Linux, This rpm will install and My older kernel will replaced by newer.
I don't know how to create rpm of above...
I know rpmbuild command, but it requires Makefile and spec file,
I don't know what to write in Makefile and spec file for kernel rpm.
I have successfully created kernel RPM, Now I want to add this RPM to disk-Image of linux operating System. so that , whenever I install this modified linux, my new kernel will be automatically installed. and I want to modify lilo.conf, so that, by default this newly created kernel can boot.
I know how to extract and recreate disk-Image, but I can't find lilo.conf from this Image. but I can find lilo.conf after installing linux, I want to modify this file in disk-image before installing it.
For that I have some questions:
-------------------------------
When we installs any linux os, is lilo.conf automatically generates?
If yes, then who generates it?
If no, then where to write lilo.conf in disk-image?
I think that works in the reverse order:
first you choose a distro, usually it has a kernel. You install it together with a boot manager. The boot manager will detect runnable OSs (like linux or windows) and will create config file. Adding a new kernel will lead to a new session (or more) in that config file. Usually during the installation of the kernel the boot manager will be updated, but you can always ask the boot manager to reconfigure itself and you can also do it by hand.
I'll try it out. I didn't knew even kernel packages can be compiled like that. So what if I try to sign it with my GPG signature? I mean, is there any legal issue or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.