summaryrefslogtreecommitdiff
path: root/bin/update_kernel_host
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2022-02-03 14:44:31 +0100
committerMarc Vertes <mvertes@free.fr>2022-02-03 14:44:31 +0100
commit7d5b2b5cde9f50b9c02f066a96799d9ae4430651 (patch)
treed96bead362540491d466ede0a6316418e8505fb3 /bin/update_kernel_host
parenta3a3a61742950d45f1573a45a928e9b04c115634 (diff)
parent70375b4962152133c0423115427d7eaa006822d6 (diff)
Merge branch 'master' of github.com:mvertes/dotfiles
Diffstat (limited to 'bin/update_kernel_host')
-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/