summaryrefslogtreecommitdiff
path: root/bin/update_kernel_host
diff options
context:
space:
mode:
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/