Debian 8.x custom kernel

by stirlab
0 deployments · 0 still active · last rev. 13 days ago

Setup for running the distro-provided kernel for Debian 8.x (jessie)

Compatible with: Debian 8
						#!/bin/bash

log "Updating existing packages..."
apt-get -y update
apt-get -y upgrade --show-upgraded

log "Installing kernel..."
apt-get -y install linux-image-amd64

log "Installing grub2..."
DEBIAN_FRONTEND=noninteractive apt-get -y install grub2

log "Customizing grub2..."
cat >> /etc/default/grub << EOF

# Customization for KVM console.
GRUB_CMDLINE_LINUX="console=ttyS0"
GRUB_TERMINAL="console"
EOF
update-grub