mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 21:44:59 +03:00
modified: .github/workflows/mikrotik_patch.yml
This commit is contained in:
parent
21591937a9
commit
e6c92713f7
4
.github/workflows/mikrotik_patch.yml
vendored
4
.github/workflows/mikrotik_patch.yml
vendored
@ -226,14 +226,14 @@ jobs:
|
|||||||
|
|
||||||
truncate --size 128M chr-$LATEST_VERSION.img
|
truncate --size 128M chr-$LATEST_VERSION.img
|
||||||
sgdisk --clear --set-alignment=2 \
|
sgdisk --clear --set-alignment=2 \
|
||||||
--new=1::+16M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
--new=1::+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
||||||
--new=2::-0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2::-0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
--gpttombr=1:2 \
|
--gpttombr=1:2 \
|
||||||
chr-$LATEST_VERSION.img
|
chr-$LATEST_VERSION.img
|
||||||
dd if=chr-$LATEST_VERSION.img of=pt.bin bs=1 count=66 skip=446
|
dd if=chr-$LATEST_VERSION.img of=pt.bin bs=1 count=66 skip=446
|
||||||
echo -e "\x80" | dd of=pt.bin bs=1 count=1 conv=notrunc
|
echo -e "\x80" | dd of=pt.bin bs=1 count=1 conv=notrunc
|
||||||
sgdisk --mbrtogpt --clear --set-alignment=2 \
|
sgdisk --mbrtogpt --clear --set-alignment=2 \
|
||||||
--new=1::+16M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
--new=1::+32M --typecode=1:8300 --change-name=1:"RouterOS Boot" --attributes=1:set:2 \
|
||||||
--new=2::-0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
--new=2::-0 --typecode=2:8300 --change-name=2:"RouterOS" \
|
||||||
chr-$LATEST_VERSION.img
|
chr-$LATEST_VERSION.img
|
||||||
dd if=mbr.bin of=chr-$LATEST_VERSION.img bs=1 count=446 conv=notrunc
|
dd if=mbr.bin of=chr-$LATEST_VERSION.img bs=1 count=446 conv=notrunc
|
||||||
|
Loading…
Reference in New Issue
Block a user