Add option to easyinstall to support the "pi-gen" tool#1107
Conversation
| # Only to be used for pi-gen automated install | ||
| function cacheSudo() { | ||
| echo "Caching sudo password" | ||
| echo raspberry | sudo -v -S | ||
| } | ||
|
|
There was a problem hiding this comment.
Couldn't this be useful for all users? F.e. when running very time consuming compilation processes?
There was a problem hiding this comment.
It will only work if they haven't changed the default password. Everyone SHOULD be changing the default password, so, I propose leaving it restricted to the pi-gen use case.
| echo "Hidden setup mode for running the pi-gen utility" | ||
| echo "This shouldn't be used by normal users" |
There was a problem hiding this comment.
Is this only bypassing systemd operations? I wonder if it would be possible to make a universal script that checks for systemd support first.
There was a problem hiding this comment.
Potentially. I'm thinking there might be more pi-gen specific functions I need to add though. I'm trying to integrate pi-gen with Github actions. (Then I can be lazy and don't need to do the releases anymore! :) )
The "pi-gen" tool is used to generate the pre-built piscsi images. Some of the commands of option (1) in easyinstall.sh are causing errors when pi-gen runs. For example, systemd isn't running in the chroot environment while the image is being built, so the systemctl status commands fail.