From e70107cb6a2f1fe17b848c43774b4e946749ea23 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 15 Aug 2021 11:26:14 +0200 Subject: update --- bin/update_kernel_host | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/update_kernel_host (limited to 'bin/update_kernel_host') 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/ -- cgit v1.2.3 From 8867b0a2d59bb6a2747a54c89a772cc5443308a5 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 5 Feb 2022 16:26:29 +0100 Subject: update --- bin/update_kernel_host | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/update_kernel_host') diff --git a/bin/update_kernel_host b/bin/update_kernel_host index 6180921..d159417 100755 --- a/bin/update_kernel_host +++ b/bin/update_kernel_host @@ -2,6 +2,11 @@ # After 'apk upgrade', update kernel and initrd on VM host +if [ -f /etc/arch-release ]; then + scp /boot/Image /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 -- cgit v1.2.3 From 342712955e9b65f2de134fa6542f97095a59e438 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 7 Feb 2022 09:19:12 +0100 Subject: update --- bin/update_kernel_host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/update_kernel_host') diff --git a/bin/update_kernel_host b/bin/update_kernel_host index d159417..4f2cbbf 100755 --- a/bin/update_kernel_host +++ b/bin/update_kernel_host @@ -3,7 +3,7 @@ # After 'apk upgrade', update kernel and initrd on VM host if [ -f /etc/arch-release ]; then - scp /boot/Image /boot/Image /boot/initramfs-linux.img marc@m1:.vm/a1 + scp /boot/Image /boot/initramfs-linux.img marc@m1:.vm/a1 exit fi -- cgit v1.2.3