mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2026-09-12 08:36:42 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user