Created
June 3, 2015 04:02
-
-
Save gnilchee/24c07fccbdbce8b19de4 to your computer and use it in GitHub Desktop.
DigitalOcean Custom Kernel
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
[root@kern ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
[root@kern ~]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm | |
[root@kern ~]# yum --enablerepo=elrepo-kernel install kernel-ml | |
[root@kern ~]# cd /boot | |
[root@kern boot]# ls -l | |
----MAKE NOTE of initramfs-[kern_version].img and vmlinuz-[kern_version] you want to boot from, version must match---- | |
[root@kern ~]# kexec -l /boot/vmlinuz-4.0.4-1.el7.elrepo.x86_64 --initrd=/boot/initramfs-4.0.4-1.el7.elrepo.x86_64.img --command-line="root=/dev/vda1 ro" | |
[root@kern ~]# reboot | |
----Next boot---- | |
[root@kern ~]# uname -r | |
4.0.4-1.el7.elrepo.x86_64 | |
[root@kern ~]# cat /etc/redhat-release | |
CentOS Linux release 7.1.1503 (Core) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment