From 8544764c6fbf5e2eb1ed9523ee185aedfa10627c Mon Sep 17 00:00:00 2001 From: zyb Date: Tue, 18 Jun 2024 23:56:05 +0800 Subject: [PATCH] modified: .github/workflows/mikrotik_patch.yml modified: patch.py --- .github/workflows/mikrotik_patch.yml | 2 +- patch.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mikrotik_patch.yml b/.github/workflows/mikrotik_patch.yml index 9df3d6a..f70033a 100644 --- a/.github/workflows/mikrotik_patch.yml +++ b/.github/workflows/mikrotik_patch.yml @@ -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 diff --git a/patch.py b/patch.py index 70e5810..dbcc28d 100644 --- a/patch.py +++ b/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':