modified: .github/workflows/mikrotik_patch.yml

modified:   patch.py
This commit is contained in:
zyb 2024-06-18 23:56:05 +08:00
parent 7b8a33268b
commit 8544764c6f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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':