I followed the official instructions you can find here.
My device has a boot ramdisk so I grabbed the boot.img as requested by the instructions. I also checked if it has a separate vbmeta partition and it does.
I followed all steps in section "Patching Images", but when I get to the line saying...