Klipper install fails on clean install, works on second try #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Linux Distribution
Armbian
What happened
When doing a clean install on a fresh system image, there is an error produced during the Klipper service installation step. The error is coming from one of the sed commands, I was able to narrow it down to the s|%CFG%|${cfg}| section in the write_klipper_service function
If you then remove Klipper via kiauh and re-install it, the installation completes successfully without error
What did you expect to happen
Install klipper :)
How to reproduce
Start with clean image with no prior kiauh, Klipper or any related install.
Install kiauh v4 from repo
Install Klipper using kiauh and python3 as the installation option
Additional information
No response
Found some more info, this seems to be dependent on the presence of the .kiauh.ini file. When that is missing (as on a clean install) the klipper service installation will fail, but on subsequent runs it works. By removing the ini file the failure can be reproduced
Fixed via pr