Friday, May 05, 2017

one ubuntu Linux kernel build/install recipe


MAKE_OPTS="-j`nproc`"

make $MAKE_OPTS
make $MAKE_OPTS modules
sudo make $MAKE_OPTS modules_install install

cd /boot
for v in $(ls vmlinuz-* | sed s/vmlinuz-//g); do
        sudo mkinitramfs -k -o initrd.img-$v $v
done
sudo update-grub
sudo reboot