mirror of
https://huihui.cat/mirrors/MikroTikPatch.git
synced 2025-12-10 03:24:37 +01:00
Update mikrotik_patch_7.yml
Signed-off-by: elseif <elseif@live.cn>
This commit is contained in:
parent
5ef845c148
commit
7195dae015
1 changed files with 2 additions and 2 deletions
4
.github/workflows/mikrotik_patch_7.yml
vendored
4
.github/workflows/mikrotik_patch_7.yml
vendored
|
|
@ -326,14 +326,14 @@ jobs:
|
||||||
sudo modprobe nbd
|
sudo modprobe nbd
|
||||||
sudo apt-get install -y qemu-utils > /dev/null
|
sudo apt-get install -y qemu-utils > /dev/null
|
||||||
truncate --size 128M chr-$LATEST_VERSION$ARCH.img
|
truncate --size 128M chr-$LATEST_VERSION$ARCH.img
|
||||||
sgdisk --clear --set-alignment=3 \
|
sgdisk --clear --set-alignment=8 \
|
||||||
--new=1::+32M --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$ARCH.img
|
chr-$LATEST_VERSION$ARCH.img
|
||||||
dd if=chr-$LATEST_VERSION$ARCH.img of=pt.bin bs=1 count=66 skip=446
|
dd if=chr-$LATEST_VERSION$ARCH.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=3 \
|
sgdisk --mbrtogpt --clear --set-alignment=8 \
|
||||||
--new=1::+32M --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$ARCH.img
|
chr-$LATEST_VERSION$ARCH.img
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue