Created
August 17, 2015 00:12
-
-
Save andyleejordan/f2fa0ad7398d09de9ce6 to your computer and use it in GitHub Desktop.
Arch Linux development kernel installation script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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