Skip to content

Instantly share code, notes, and snippets.

@andyleejordan
Created August 17, 2015 00:12
Show Gist options
  • Save andyleejordan/f2fa0ad7398d09de9ce6 to your computer and use it in GitHub Desktop.
Save andyleejordan/f2fa0ad7398d09de9ce6 to your computer and use it in GitHub Desktop.
Arch Linux development kernel installation script
# Arch Linux development installkernel script
# Andrew Schwartzmeyer <[email protected]>
# 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