copy kernel instead of moving

This commit is contained in:
Tobias Powalowski 2022-06-18 11:25:18 +02:00
parent f0e97c335c
commit df243be163

View file

@ -53,8 +53,8 @@ if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then
# 10 seconds for getting free RAM
_clean_kernel_cache
sleep 10
echo -e "\033[1mStep 4/9:\033[0m Moving kernel ${VMLINUZ} to /${VMLINUZ} ..."
mv "${_W_DIR}"/boot/${VMLINUZ} / || exit 1
echo -e "\033[1mStep 4/9:\033[0m Copy kernel ${VMLINUZ} to /${VMLINUZ} ..."
cp "${_W_DIR}"/boot/${VMLINUZ} / || exit 1
[[ ${_RUNNING_ARCH} == "x86_64" ]] && _kver_x86
[[ ${_RUNNING_ARCH} == "aarch64" ]] && _kver_generic
echo -e "\033[1mStep 5/9:\033[0m Collect initramfs files in ${_W_DIR} ..."