LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   My very own Kernel build script for Debian/Ubuntu-based systems (https://www.linuxquestions.org/questions/linux-kernel-70/my-very-own-kernel-build-script-for-debian-ubuntu-based-systems-847579/)

Kenny_Strawn 11-30-2010 10:20 PM

My very own Kernel build script for Debian/Ubuntu-based systems
 
https://launchpad.net/kernel-setup-sh

It can be easily ported to RPM or Pacman-based systems, however, just by editing line 4.

TobiSGD 12-01-2010 03:54 PM

Good work, but wouldn't it be the correct way to make a package from the compiled kernel and then to install the package? This way your script would be compatible with DKMS and the kernelmodules for Virtualbox, proprietary drivers and so would be automatically compiled to fit the new build kernel. The way you do it Virtualbox, nVidia drivers, ATI drivers, etc will not work with the newly installed kernel. You can find more info for building packages from kernels here.

Kenny_Strawn 12-02-2010 05:24 AM

The problem is that that would conflict with my intention to have the script be able to allow you to customize the kernel (i.e. install only those modules to support *your* hardware) without having to run all those extra commands. That's why this script runs 'make xconfig' by itself in the first place!

TobiSGD 12-02-2010 07:31 AM

Nothing wrong in running make xconfig, the packaging into a .deb-file is done at compiling time.

Kenny_Strawn 12-02-2010 09:24 AM

Okay, now version 2 of the script includes the kernel package option.

TobiSGD 12-02-2010 09:57 AM

I have some questions, and some suggestions regarding your script:
  1. Why is it necessary to install all those filesystem-tools and things like ppp and isdnutils?
  2. You install grub-pc in your script. This is okay for all people that are running grub2, but if someone runs grub-legacy (i.E. Debian Stable users) this can lead to problem and may be unwanted. At least you can warn the users and let them ask a question, if they want to do that, or, maybe even better, ask a question with three choices what to install: no bootloader, grub-legacy, grub-pc. the update-grub command is also available for grub-legacy (in grub-pc it is only a wrapper for the grub-mkconfig command, for compatibility), so this should be doable.
  3. And a suggestion for the future: Instead of installing all needed packages in the beginning of the script, I think it would be better (and the Debian way of doing it) to make a packe from your script that depends on all that needed packages.

By the way, as I already said, good work.


All times are GMT -5. The time now is 04:49 AM.