I was coming to post this.
Type your password AFTER the first command (sudo...) and then run the 2nd and 3rd. You have to wait for it to run though, it might take 10-20 seconds. If you try to close Terminal and it says things are still running, don't close it. It should close without any message meaning the commands are already completed running.
This will fix your bootup time, 99.9% guaranteed. 🙄