mirror of
https://github.com/elseif/MikroTikPatch.git
synced 2025-01-23 05:25:00 +03:00
modified: .github/workflows/mikrotik_patch.yml
modified: patch.py
This commit is contained in:
parent
7b8a33268b
commit
8544764c6f
2
.github/workflows/mikrotik_patch.yml
vendored
2
.github/workflows/mikrotik_patch.yml
vendored
@ -160,7 +160,7 @@ jobs:
|
||||
- name: Patch chr-${{ env.LATEST_VERSION }}.img
|
||||
run: |
|
||||
sudo modprobe nbd
|
||||
sudo apt -y install qemu-utils debugfs 2> /dev/null
|
||||
sudo apt install -y qemu-utils 2> /dev/null
|
||||
sudo qemu-img convert -f raw -O qcow2 chr-$LATEST_VERSION.img chr-$LATEST_VERSION.qcow2
|
||||
sudo rm chr-$LATEST_VERSION.img.zip
|
||||
sudo rm chr-$LATEST_VERSION.img
|
||||
|
2
patch.py
2
patch.py
@ -159,7 +159,7 @@ if __name__ == '__main__':
|
||||
if args.command =='npk':
|
||||
print(f'patching {args.input} ...')
|
||||
patch_npk_file(key_dict,kcdsa_private_key,eddsa_private_key,args.input,args.output)
|
||||
if args.command =='boot':
|
||||
elif args.command =='boot':
|
||||
print(f'patching {args.dev} ...')
|
||||
patch_bootloader(key_dict,args.dev)
|
||||
elif args.command == 'netinstall':
|
||||
|
Loading…
Reference in New Issue
Block a user