@handy Yes that works, but probably not that useful for what script is intended when someone register for this forum and writes: “Can’t boot, help me please”
My plan with the script is to be able that new user with problem would be guided with these simple steps:
- log to tty
- from AUR install ‘logs’
- run the script and copy/paste everything here
I have an idea. There will be two ‘cli’ versions, logs and logsp (p for “password required”) this second one will not need to be used most of the time but when it will be, it will provide even more info, such as: show all un-commented lines from /etc/mkinitcpio.conf and some other that generally need password to be able to see it. And user will just need to be fore warned, run the script but you will also need to enter password.
But for every day use, if someone just want to quickly check different logs for errors from time to time, there will be version that will not require the password. problem solved