mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 05:25:00 +03:00
modified: .github/workflows/mikrotik_patch_6.yml
This commit is contained in:
parent
9f9fad29ae
commit
1d92870ab3
4
.github/workflows/mikrotik_patch_6.yml
vendored
4
.github/workflows/mikrotik_patch_6.yml
vendored
@ -175,12 +175,14 @@ jobs:
|
||||
run: |
|
||||
sudo mkdir ./chr
|
||||
sudo cp chr.img chr-$LATEST_VERSION.img
|
||||
sudo mount -o loop,rw chr-$LATEST_VERSION.img ./chr
|
||||
sudo qemu-nbd -c /dev/nbd0 -f raw chr-$LATEST_VERSION.img
|
||||
sudo mount /dev/nbd0p1 ./chr
|
||||
sudo -E python3 patch.py kernel ./chr/boot/initrd.rgz
|
||||
sudo cp ./all_packages/ipv6-$LATEST_VERSION.npk ./chr/var/pdb/ipv6/image
|
||||
sudo cp ./all_packages/dude-$LATEST_VERSION.npk ./chr/var/pdb/dude/image
|
||||
sudo cp ./all_packages/system-$LATEST_VERSION.npk ./chr/var/pdb/routeros-x86/image
|
||||
sudo umount ./chr
|
||||
sudo qemu-nbd -d /dev/nbd0
|
||||
sudo rm -rf ./chr
|
||||
|
||||
sudo qemu-img convert -f raw -O qcow2 chr-$LATEST_VERSION.img chr-$LATEST_VERSION.qcow2
|
||||
|
Loading…
Reference in New Issue
Block a user