summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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