From aea034bcf65c718aaa98a52ed4ee3f31524d53e4 Mon Sep 17 00:00:00 2001 From: elseif Date: Sun, 19 Jan 2025 22:55:09 +0800 Subject: [PATCH] Update mikrotik_patch_7.yml Signed-off-by: elseif --- .github/workflows/mikrotik_patch_7.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index 9e32780..9e17e58 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -339,12 +339,14 @@ jobs: sudo cp ./chr/boot/EFI/BOOT/BOOTX64.EFI ./img/boot/EFI/BOOT/BOOTX64.EFI sudo umount /dev/nbd1p1 sudo mount /dev/nbd1p2 ./chr/routeros/ - sudo mkdir -p ./chr/routeros/var/pdb/{system,option} + sudo rm -rf ./chr/routeros/* + sudo mkdir -p ./chr/routeros/{var/pdb/{system,option},boot,rw} sudo cp ./all_packages/option-$LATEST_VERSION$ARCH.npk ./chr/routeros/var/pdb/option/image sudo cp ./all_packages/routeros-$LATEST_VERSION$ARCH.npk ./chr/routeros/var/pdb/system/image sudo umount /dev/nbd1p2 - sudo rm -rf ./chr + sudo zerofree -v /dev/nbd1p2 sudo qemu-nbd -d /dev/nbd1 + sudo rm -rf ./chr sudo qemu-img convert -f raw -O qcow2 chr-$LATEST_VERSION$ARCH-legacy-bios.img chr-$LATEST_VERSION$ARCH-legacy-bios.qcow2 sudo qemu-img convert -f raw -O vmdk chr-$LATEST_VERSION$ARCH-legacy-bios.img chr-$LATEST_VERSION$ARCH-legacy-bios.vmdk