summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2021-04-02 12:24:14 +0200
committerMarc Vertes <mvertes@free.fr>2021-04-02 12:24:14 +0200
commitc9c21b36d68b75374b8bed64f1bed8b04b21b69f (patch)
tree7a7e12733bff6eaab6ea82a4296693336ca047c0
parentae04cc260d63765fc20a2d7bb21d121986f71445 (diff)
update
-rwxr-xr-xbin/update_kernel_host8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/update_kernel_host b/bin/update_kernel_host
new file mode 100755
index 0000000..6180921
--- /dev/null
+++ b/bin/update_kernel_host
@@ -0,0 +1,8 @@
+#!/bin/sh -ex
+
+# After 'apk upgrade', update kernel and initrd on VM host
+
+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/