View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

Actualizar el núcleo de un SIV con Debian 8, desde kernel 3.16 al 5.19

Se ha realizado en sivchamartin1, usando como donante un pci de debian 11, pciaeropuerto (que también usa dgrp y lo tiene compilado para su núcleo)

1. En sivchamartin1, como root:
cd /
socket-upipe-server 10000 | tar -xvzf -


2. En pciaeropuerto, como usuario pci:
cd /
tar -cf - boot/*5.19* lib/modules/*5.19* | gzip -1 | socket-upipe-client 18.131.49.43 10000


3. En sivchamartin1, como root:
cd /boot/grub
cp grub.cfg grub.cfg.old
cat /boot/grub/grub.cfg | tr '\n' '%' | sed 's/}/\n/g;s/%menuentry/\nmenuentry/g' | grep ^menuentry | head -1 | sed "s/\$/}/g" | tr '%' '\n' > /tmp/entry
sed -i "s/3.16.0-4-686-pae/5.19.0-0.deb11.2-686-pae/g" /tmp/entry
sed -i s/gnulinux-simple/OLDgnulinux-simple/g grub.cfg
n=$(grep -n OLDgnulinux-simple grub.cfg | head -1 | cut -d ':' -f 1)
head -$(($n-1)) grub.cfg > grub.cfg.1
sed "1,$(( $n-1))d" < grub.cfg > grub.cfg.2
cat grub.cfg.1 /tmp/entry grub.cfg.2 > grub.cfg.backup
cp -f grub.cfg.backup grub.cfg


4. Por último, en sivchamartin1, como root:
reboot


UPDATE 20240404: Se hace el mismo procedimiento en sivcastilla1 (ip 18.131.49.43 en el paso 1), copiando también desde pciaeropuerto. Se arreglan unos errores en las instrucciones (los sed y head del paso 3).

Y después se han actualizado otros como: sivemetropolitano15, sivtresolivosn, sivoporto , sivlafortuna, sivpsur12 y sivlasrosas.



Cómo volver atras y hacer que arranque con el kernel 3.16 después de haber instalado el 5.19


En la máquina en la que se ha instalado el nuevo kernel, se hace, como root, lo siguiente:
cp /boot/grub/grub.cfg /boot/grub/grub.cfg.old
sed -i '/END.*_header/aset default="1"' /boot/grub/grub.cfg


NOTA: Al intertar hacer un reboot al cambiar el núcleo de arguelles no volvía y ha vuelto usando el reboteador. Habría que probar a usar un "shutdown -r now" o directamente el reboteador.