modified: .github/workflows/build_docker.yml

modified:   .github/workflows/main.yml
	modified:   .github/workflows/patch_v7.yml
	modified:   chr.sh
	modified:   setup-routeros.sh
This commit is contained in:
elseif
2026-09-02 10:55:18 +08:00
parent 640fb1cd62
commit 3572a73c28
5 changed files with 98 additions and 57 deletions

View File

@@ -779,13 +779,6 @@ step_install() {
return 1
fi
# Must be 0x83, otherwise "ERROR: could not find disk!"
printf '\x83' | dd of="$TARGET_DISK" bs=1 seek=450 conv=notrunc >> "$LOG_FILE" 2>&1 || {
step_msg "[ 33%] [ERR] Step 3/8: Failed to change partition type on $TARGET_DISK"
echo "dd failed to change partition type on $TARGET_DISK" > "$ERR_FILE"
return 1
}
# Active boot partition
printf '\x80' | dd of="$TARGET_DISK" bs=1 seek=446 conv=notrunc >> "$LOG_FILE" 2>&1 || {
step_msg "[ 33%] [ERR] Step 3/8: Failed to Active boot partition on $TARGET_DISK"
@@ -793,10 +786,10 @@ step_install() {
return 1
}
# Clear the 3rd partition entry generated by sgdisk --hybrid
dd if=/dev/zero of="$TARGET_DISK" bs=1 seek=478 count=16 conv=notrunc >> "$LOG_FILE" 2>&1 || {
step_msg "[ 33%] [ERR] Failed to clear 3rd MBR partition entry on $TARGET_DISK"
echo "dd failed to clear 3rd MBR partition entry on $TARGET_DISK" > "$ERR_FILE"
# Must be 0x83, otherwise "ERROR: could not find disk!"
printf '\x83' | dd of="$TARGET_DISK" bs=1 seek=450 conv=notrunc >> "$LOG_FILE" 2>&1 || {
step_msg "[ 33%] [ERR] Step 3/8: Failed to change partition type on $TARGET_DISK"
echo "dd failed to change partition type on $TARGET_DISK" > "$ERR_FILE"
return 1
}