Skip to content

Help Upgrading my Kernel

I have a dedicated box through SoYouStart which is a child company of OVH (just for reference in case anyone else is in the same boat).

SoYouStart/OVH gave me a prebuilt kernel which does not have some of the flags I need. I have installed a prebuilt one from the official repos (the flags are needs are pretty common, I have no idea why OVH did not have them enabled).

I tried to update my GRUB bootloader, but I bricked my system. So I entered rescue mode and reverted it. If anyone can help get switched over to this knew kernel, that would be awesome.

Here is what I believe is the relevant file from my /etc/grub.d/ folder (06_OVH-kernel):

#! /bin/sh -e
. /usr/share/grub/grub-mkconfig_lib

OS="ArchLinux 2013"

LINUX_ROOT_DEVICE=${GRUB_DEVICE}

linux=`ls -1 -t /boot/bzImage*64 2>/dev/null | head -n1`
if [[ -n "${linux}" ]]; then
        echo "Found linux image: $linux" >&2
        basename=`basename $linux`
        dirname=`dirname $linux`
        rel_dirname=`make_system_path_relative_to_its_root $dirname`
        version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
        alt_version=`echo $version | sed -e "s,\.old$,,g"`
        linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
        initrd="/initrd-iscsi.img"


        cat << EOF
menuentry "${OS}, OVH kernel ${version}" {
EOF
        prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
        cat << EOF
        linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}
EOF
        if test -e "${initrd}" ; then
                cat << EOF
        initrd  ${initrd}
EOF
        fi
        cat << EOF
}
EOF

fi

And here is the contents of my /etc/grub.d/ folder and my /boot/ folder:

drwxr-xr-x  2 root root 4.0K Mar  7 00:58 .
drwxr-xr-x 62 root root 4.0K Mar  9 13:38 ..
-rwxr-xr-x  1 root root 8.7K Oct 27 21:07 00_header
-rwxr-xr-x  1 root root  941 Mar  8 03:29 06_OVH-kernel
-rwxr-xr-x  1 root root 9.7K Oct 27 21:07 10_linux
-rwxr-xr-x  1 root root  11K Oct 27 21:07 20_linux_xen
-rwxr-xr-x  1 root root  11K Oct 27 21:07 30_os-prober
-rwxr-xr-x  1 root root  214 Oct 27 21:07 40_custom
-rwxr-xr-x  1 root root  216 Oct 27 21:07 41_custom
-rwxr-xr-x  1 root root 1.2K Oct 27 21:07 60_memtest86+
-rw-r--r--  1 root root  483 Oct 27 21:07 README

drwxr-xr-x  3 root root 4.0K Mar  8 02:51 .
drwxr-xr-x 18 root root 4.0K Mar  7 01:07 ..
-rw-r--r--  1 root root 2.9M Feb 11 16:56 System.map-3.14.32-xxxx-grs-ipv6-64
-rw-r--r--  1 root root 8.2M Feb 11 16:56 bzImage-3.14.32-xxxx-grs-ipv6-64
drwxr-xr-x  6 root root 4.0K Mar  8 03:48 grub
-rw-r--r--  1 root root  18M Mar  8 02:23 initramfs-linux-fallback.img
-rw-r--r--  1 root root  18M Mar  8 02:51 initramfs-linux-grsec-fallback.img
-rw-r--r--  1 root root 3.3M Mar  8 02:51 initramfs-linux-grsec.img
-rw-r--r--  1 root root 3.3M Mar  8 02:23 initramfs-linux.img
-rw-r--r--  1 root root 634K Oct 12 14:05 intel-ucode.img
-rw-r--r--  1 root root 3.9M Feb  7 08:45 vmlinuz-linux
-rw-r--r--  1 root root 4.3M Feb 28 05:41 vmlinuz-linux-grsec

EDIT: Just some clarification updates.

Edited 11 Mar 2015. We only hold this version.

0 points1 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
2yoebd

Author

5
posts
34
comments
2
media
View profile

1 comment

You don't actually need to edit any grub.d files, iirc.
There is a great article on the arch wiki about installing custom kernels,but I am on mobile right now, don't want to search it

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.