Unlike using Fastboot from a PC (which abstracts partition names), unlocking from within the OS requires specific knowledge of your device's partition layout.
But for the , you still need to use the device’s hardware keys or adb reboot bootloader from Termux with USB debugging enabled . That’s the trick: Termux with adb and fastboot packages can interface with the bootloader once the phone restarts. unlock bootloader using termux better