summaryrefslogtreecommitdiff
path: root/bin/update_kernel_host
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2022-02-05 16:26:29 +0100
committerMarc Vertes <mvertes@free.fr>2022-02-05 16:26:29 +0100
commit8867b0a2d59bb6a2747a54c89a772cc5443308a5 (patch)
treed15820d5e0dffb9c51484b3f1c452beb82d21c99 /bin/update_kernel_host
parent7d5b2b5cde9f50b9c02f066a96799d9ae4430651 (diff)
update
Diffstat (limited to 'bin/update_kernel_host')
-rwxr-xr-xbin/update_kernel_host5
1 files changed, 5 insertions, 0 deletions
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