Tag Info

Hot answers tagged

12

This is an effort to remove kernels that aren't the current one. There are many bits of code out there that do something like this and this is it not a good example. It could easily remove newer-than-current kernels and therefore the meta-package that installs (linux-generic et al) if you had an upgrade and didn't reboot.


10

Let's break the code one by one (for my system): $ dpkg -l 'linux-image-*' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description ...


4

I wouldn't recommend it. Not only would you have to reboot the same machine you're developing with (interrupting your work flow), but you might accidentally build a kernel that is missing some hardware drivers your laptop uses. If you do that, you can hold down Shift during boot to get the grub menu and boot an official kernel instead of your custom one. ...


2

You can always afford to experiment provided you begin with a good disaster recovery plan. muru suggestion (in comments) to use a virtual machine is likely the safest and perhaps easiest solution (to take that approach see this and this ). However, provided you have current backups ( see this and this ) and a known good live media of your current system ...


2

You can append a line with that setting to /etc/sysfs.conf: kernel/mm/transparent_hugepage/enabled = never This is the cleanest solution, because it keeps all the sysfs configuration in one place instead of relying on start-up scripts. The other answers, with the scripts and conditional expressions, are suitable if you don't know through which path the ...


1

Just steal the config file for the Ubuntu version of the kernel you want to build. For example, say you wanted to compile kernel 4.0 yourself. Go to the kernel PPA, get and install the kernel. Then from your build location do: cp /boot/config-4.0.0-040000-lowlatency .config where in my example, I have used the lowlatency kernel, you might use a different ...



Only top voted, non community-wiki answers of a minimum length are eligible