User Tools

Site Tools


gentoo:kernel_upgrades

Gentoo kernel upgrades

First we build the kernels on collab :

PREV_VERSION=4.14.78-gentoo
eselect kernel set 1
for ARCHI in `ls /srv/gentoo-builder/kernels/`; do cd /usr/src/linux; make mrproper; cp /srv/gentoo-builder/kernels/${ARCHI}/config-${PREV_VERSION} .config; make oldconfig; make -j5; INSTALL_PATH=/srv/gentoo-builder/kernels/${ARCHI}/ make install; INSTALL_MOD_PATH=/srv/gentoo-builder/kernels/${ARCHI}/ make modules_install; done

On each node :

export VERSION=4.14.83-gentoo
wget http://packages.adyxax.org/kernels/${HOSTNAME}/System.map-${VERSION} -O /boot/System.map-${VERSION}
wget http://packages.adyxax.org/kernels/${HOSTNAME}/config-${VERSION} -O /boot/config-${VERSION}
wget http://packages.adyxax.org/kernels/${HOSTNAME}/vmlinuz-${VERSION} -O /boot/vmlinuz-${VERSION}
grub-mkconfig -o /boot/grub/grub.cfg
rsync -a --delete collab-jde.nexen.net:/srv/gentoo-builder/kernels/${HOSTNAME}/lib/modules/${VERSION} /lib/modules/

On Nas :

eselect kernel set 1
cd /usr/src/linux
cp /boot/config-${VERSION} .config
cp /boot/System.map-${VERSION} System.map
(cd usr ; make gen_init_cpio)
genkernel --mdadm --install initramfs
make modules_prepare
emerge net-misc/r8168 --quiet
grub-mkconfig -o /boot/grub/grub.cfg

On Hurricane and Hero

eselect kernel set 1
cd /usr/src/linux
cp /boot/config-${VERSION} .config
cp /boot/System.map-${VERSION} System.map
(cd usr ; make gen_init_cpio)
genkernel --luks --lvm --install initramfs
grub-mkconfig -o /boot/grub/grub.cfg
gentoo/kernel_upgrades.txt · Last modified: 2019/04/16 13:37 by 207.46.13.201