modified: .github/workflows/mikrotik_patch.yml

modified:   patch.py
This commit is contained in:
zyb
2024-06-21 04:26:13 +08:00
parent 2eff1b0774
commit e79d234e51
2 changed files with 1 additions and 45 deletions

View File

@@ -182,6 +182,7 @@ jobs:
sudo cp routeros-$LATEST_VERSION.npk ./img/routeros/var/pdb/system/image
sudo umount /dev/nbd0p2
sudo rm -rf ./boot
sudo dd if=/dev/zero of=/dev/nbd0 bs=1 count=1 seek=336 conv=notrunc
sudo qemu-nbd -d /dev/nbd0
sudo qemu-img convert -f raw -O qcow2 chr-$LATEST_VERSION.img chr-$LATEST_VERSION.qcow2