tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
22 stars 1 forks source link

vps 热切换内核版本 #32

Open tiancheng91 opened 5 years ago

tiancheng91 commented 5 years ago

https://anisse.astier.eu/distro-kernel-scaleway-arm.html

apt install kexec-tools
#!/bin/sh
if grep -q is_in_kexec=yes /proc/cmdline; then 
        exit 0
fi
kexec -f --ramdisk=/initrd.img --append="$(cat /proc/cmdline) is_in_kexec=yes root=/dev/vda1" /vmlinuz