使用kexec不停重啓機器來測試啓動過程當中的問題

conceptually as to the purpose, think of it as a fancy version of an @reboot crontab entry run as root..net

cat /proc/cmdline sync lscpu sync cat /proc/meminfo synccode

echo look for any scsi disks

(mount;swapon -s)|grep /dev/sd &&
echo DANGER SCSI DISKS IN USEcrontab

find initrd

unr=$(uname -r) initrd=/boot/initramfs-$unr.img test -f $initrd || initrd=/boot/initrd-$unrget

if [[ -f $initrd ]]; then kexec -l /boot/vmlinuz-$unr --initrd=$initrd --reuse-cmdline sync fi reboot --no-wallcmd

Or using systemctl rebootit

相關文章
相關標籤/搜索