summaryrefslogtreecommitdiff
path: root/bin/update_kernel_host
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-21 08:42:15 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-21 08:42:15 +0100
commit0ad4e2b969c28d2b39d29e55e53ae632db710030 (patch)
tree62bb292d8da9a835becb679b5d6917c50da3d950 /bin/update_kernel_host
parentbac7296bb38bb46b51e4fd70c5fe234f2a58d553 (diff)
parent6d506e0b30569c547f41f6d6334a1b5133774da4 (diff)
Merge github.com:mvertes/dotfiles
Diffstat (limited to 'bin/update_kernel_host')
-rwxr-xr-xbin/update_kernel_host13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/update_kernel_host b/bin/update_kernel_host
new file mode 100755
index 0000000..4f2cbbf
--- /dev/null
+++ b/bin/update_kernel_host
@@ -0,0 +1,13 @@
+#!/bin/sh -ex
+
+# After 'apk upgrade', update kernel and initrd on VM host
+
+if [ -f /etc/arch-release ]; then
+ scp /boot/Image /boot/initramfs-linux.img marc@m1:.vm/a1
+ exit
+fi
+
+sudo cp /boot/initramfs-virt /tmp
+sudo chmod a+r /tmp/initramfs-virt
+gunzip < /boot/vmlinuz-virt > /tmp/vmlinux
+scp /tmp/initramfs-virt /tmp/vmlinux marc@m1:.vm/vm1/