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