Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arch Linux development kernel installation script
# Arch Linux development installkernel script
# Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
# See `Documentation/kbuild/kbuild.txt`
# Copy to `/sbin/installkernel`
# Use with `sudo make install`
# Copy the kernel image
cp -v $2 $4/vmlinuz-linux-$1
# Make initial RAM disk
mkinitcpio -k $1 -c /etc/mkinitcpio.conf -g $4/initramfs-linux-$1.img
# Copy and link symbol table
cp $3 $4/System.map-$1
ln -sf $4/System.map-$1 $4/System.map
# Update Grub entries
grub-mkconfig -o $4/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment