modified: .github/workflows/mikrotik_patch.yml

This commit is contained in:
zyb 2024-06-24 03:59:00 +08:00
parent 8345f36d9b
commit 1f15127ac7

View File

@ -193,10 +193,12 @@ jobs:
sudo rm syslinux.cfg
sudo umount /dev/nbd0p1
sudo mount /dev/nbd0p2 ./img/routeros/
sudo mkdir -p ./img/routeros/{var/pdb/{system,option},rw/disk}
sudo mkdir -p ./img/routeros/{var/pdb/{system,option},rw/disk,dev}
sudo cp keygen.zip ./img/routeros/rw/disk/
sudo cp option-$LATEST_VERSION.npk ./img/routeros/var/pdb/option/image
sudo cp routeros-$LATEST_VERSION.npk ./img/routeros/var/pdb/system/image
sudo mknod ./img/routeros/dev/bootdev b 8 0
sudo mknod ./img/routeros/dev/bootpart b 8 1
sudo umount /dev/nbd0p2
sudo rm -rf ./img
sudo qemu-nbd -d /dev/nbd0