Open reubenmiller opened 1 month ago
Note, the error does not prevent the software being installed, however it adds unwanted noise, and it assumes that systemd is being used which is not always the case (as the device in the ticket is using SysVInit)
Describe the bug
The thin-edge.io debian packages assume that the
deb-systemd-helper
is available which is not always the case on custom Linux distributions which useapt-get
but don't have the systemd installed (or the debian helper scripts), e.g. a Yocto build.Below shows the errors shown whilst installing thin-edge.io via the install.sh script:
To Reproduce
This is hard to reproduce manually, because you need to build your own custom linux distribution, however the bug is clear enough to be able to fix without being able to reproduce it (or at least until an easier way is found).
Expected behavior
Commands which don't exist should not be called. When the thin-edge.io packages are installed on systems without the
deb-systemd-helper
, it might be worthwhile checking if the "tedgectl" command exists, and use it to interact with the services, otherwise the operations should just be a "no-operation".Screenshots
Environment (please complete the following information):
yocto
Opto 22
Linux EPIC-PR2-ESAB 4.1.15-rt18-nxtio-2.1.0+ge91f4e8 #2 SMP PREEMPT RT Sat Aug 26 06:11:55 PDT 2023 armv7l GNU/Linux
tedge 1.1.2~231+ge310033
sysvinit
file: /etc/build
Additional context