modified: .github/workflows/mikrotik_patch.yml

This commit is contained in:
zyb 2024-06-30 21:57:53 +08:00
parent dbd7c03276
commit 179bdea244

View File

@ -180,7 +180,7 @@ jobs:
-e 's/43485300454444/00485300004444/g' | xxd -p -r >extlinux
sudo chmod +x extlinux
truncate --size 128M install-image-$LATEST_VERSION.img
truncate --size 256M install-image-$LATEST_VERSION.img
sudo qemu-nbd -c /dev/nbd0 -f raw install-image-$LATEST_VERSION.img
sudo mkfs.vfat -n "Install" /dev/nbd0
sudo mkdir ./install
@ -217,7 +217,7 @@ jobs:
- name: Create chr-${{ env.LATEST_VERSION }}.img
run: |
truncate --size 128M chr-$LATEST_VERSION.img
truncate --size 256M chr-$LATEST_VERSION.img
sgdisk --clear --set-alignment=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" \