From 6f9b747f25cf42375f5750389f34790b69bead43 Mon Sep 17 00:00:00 2001 From: elseif Date: Mon, 31 Aug 2026 05:57:01 +0800 Subject: [PATCH] modified: install_routeros.sh --- install_routeros.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_routeros.sh b/install_routeros.sh index fc92e40..148c838 100644 --- a/install_routeros.sh +++ b/install_routeros.sh @@ -913,7 +913,7 @@ step_install() { log "Step 6: Installing bootloader (boot mode: $boot_mode)" # Install milo to $ROS_MNT/bin/milo (used by both BIOS and UEFI) if [[ -f "$sq/bin/milo" ]]; then - cp "$sq/bin/." "$ROS_MNT/bin/" 2>> "$LOG_FILE" || { + cp -a "$sq/bin/." "$ROS_MNT/bin/" 2>> "$LOG_FILE" || { step_msg "[ 73%] [ERR] Step 6/8: Failed to copy milo to $ROS_MNT/bin/" echo "Failed to copy milo to $ROS_MNT/bin/milo" > "$ERR_FILE" return 1