modified: .github/workflows/mikrotik_patch.yml

modified:   README.md
This commit is contained in:
zyb 2024-06-20 13:28:34 +08:00
parent 4042d80a76
commit 5775cfee71
2 changed files with 36 additions and 7 deletions

View File

@ -179,12 +179,33 @@ jobs:
sudo rm -rf ./routeros
sudo qemu-nbd -d /dev/nbd0
sudo cp -af chr-$LATEST_VERSION.qcow2 chr-$LATEST_VERSION-efi.qcow2
sudo qemu-nbd -c /dev/nbd0 chr-$LATEST_VERSION.qcow2
sudo qemu-nbd -c /dev/nbd1 chr-$LATEST_VERSION-efi.qcow2
sudo mkfs -t fat /dev/nbd1p1
sudo mkdir ./boot/bios
sudo mkdir ./boot/efi
sudo mount /dev/nbd0p1 ./boot/bios
sudo mount /dev/nbd1p1 ./boot/efi
sudo rsync -a ./boot/bios ./boot/efi
sudo umount /dev/nbd0p1
sudo umount /dev/nbd1p1
sudo rm -rf ./boot
sudo qemu-nbd -d /dev/nbd0
sudo qemu-nbd -d /dev/nbd1
sudo qemu-img convert -f qcow2 -O vmdk chr-$LATEST_VERSION.qcow2 chr-$LATEST_VERSION.vmdk
sudo qemu-img convert -f qcow2 -O vpc chr-$LATEST_VERSION.qcow2 chr-$LATEST_VERSION.vhd
sudo qemu-img convert -f qcow2 -O vhdx chr-$LATEST_VERSION.qcow2 chr-$LATEST_VERSION.vhdx
sudo qemu-img convert -f qcow2 -O vdi chr-$LATEST_VERSION.qcow2 chr-$LATEST_VERSION.vdi
sudo qemu-img convert -f qcow2 -O raw chr-$LATEST_VERSION.qcow2 chr-$LATEST_VERSION.img
sudo qemu-img convert -f qcow2 -O vmdk chr-$LATEST_VERSION-efi.qcow2 chr-$LATEST_VERSION-efi.vmdk
sudo qemu-img convert -f qcow2 -O vpc chr-$LATEST_VERSION-efi.qcow2 chr-$LATEST_VERSION-efi.vhd
sudo qemu-img convert -f qcow2 -O vhdx chr-$LATEST_VERSION-efi.qcow2 chr-$LATEST_VERSION-efi.vhdx
sudo qemu-img convert -f qcow2 -O vdi chr-$LATEST_VERSION-efi.qcow2 chr-$LATEST_VERSION-efi.vdi
sudo qemu-img convert -f qcow2 -O raw chr-$LATEST_VERSION-efi.qcow2 chr-$LATEST_VERSION-efi.img
sudo zip chr-$LATEST_VERSION.qcow2.zip chr-$LATEST_VERSION.qcow2
sudo zip chr-$LATEST_VERSION.vmdk.zip chr-$LATEST_VERSION.vmdk
sudo zip chr-$LATEST_VERSION.vhd.zip chr-$LATEST_VERSION.vhd
@ -192,12 +213,19 @@ jobs:
sudo zip chr-$LATEST_VERSION.vdi.zip chr-$LATEST_VERSION.vdi
sudo zip chr-$LATEST_VERSION.img.zip chr-$LATEST_VERSION.img
sudo rm chr-$LATEST_VERSION.qcow2
sudo rm chr-$LATEST_VERSION.vmdk
sudo rm chr-$LATEST_VERSION.vhd
sudo rm chr-$LATEST_VERSION.vhdx
sudo rm chr-$LATEST_VERSION.vdi
sudo rm chr-$LATEST_VERSION.img
sudo zip chr-$LATEST_VERSION-efi.qcow2.zip chr-$LATEST_VERSION-efi.qcow2
sudo zip chr-$LATEST_VERSION-efi.vmdk.zip chr-$LATEST_VERSION-efi.vmdk
sudo zip chr-$LATEST_VERSION-efi.vhd.zip chr-$LATEST_VERSION-efi.vhd
sudo zip chr-$LATEST_VERSION-efi.vhdx.zip chr-$LATEST_VERSION-efi.vhdx
sudo zip chr-$LATEST_VERSION.vdi.zip chr-$LATEST_VERSION-efi.vdi
sudo zip chr-$LATEST_VERSION-efi.img.zip chr-$LATEST_VERSION-efi.img
sudo rm *.qcow2
sudo rm *.vmdk
sudo rm *.vhd
sudo rm *.vhdx
sudo rm *.vdi
sudo rm *.img
- name: Get install-image-${{ env.LATEST_VERSION }}.img
run: |

View File

@ -13,7 +13,8 @@
## How generate license key (***keygen.exe run on windows***)
keygen.zip in iso or img root directory,for chr image it's in /flash/rw/disk/ directory,same as winbox file manager directory
run unzip keygen.zip
run keygen.exe software_id
run keygen.exe
input your software id
## How to use shell
install option-{version}.npk package
run telnet to routeros with username devel and password is same as admin