try to solve the memory gap with --mem-max option

This commit is contained in:
Tobias Powalowski 2022-06-11 15:54:15 +02:00
parent 7d90f629ea
commit 5f8e179e3e

View file

@ -281,7 +281,7 @@ _kexec () {
else
echo -e "Running \033[1m\033[92mkexec\033[0m with \033[1mold\033[0m KEXEC_LOAD ..."
# works on systems with <6GB
kexec -c -f /"${VMLINUZ}" --initrd="/initrd.img" --reuse-cmdline &
kexec -c -f --mem-max=0x80000000 /"${VMLINUZ}" --initrd="/initrd.img" --reuse-cmdline &
fi
sleep 2
_clean_kernel_cache