unload virtio-net to avoid non functioning network on aarch64 kexec reboot

This commit is contained in:
Tobias Powalowski 2022-04-18 10:06:37 +02:00
parent 7196af04c7
commit b90f424b66

View file

@ -217,6 +217,8 @@ if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then
umount ${_W_DIR}
echo 1 > /sys/block/zram0/reset
sleep 5
# unload virtio-net to avoid non functional network device on aarch64
rmmod virtio-net
echo -e "\033[1mStep 9/9:\033[0m Loading files through kexec into kernel now ..."
# load kernel and initrds into running kernel in background mode!
kexec -f /"${VMLINUZ}" --initrd="/initrd.img" --reuse-cmdline&