diskimage-builder/diskimage_builder/elements/dib-init-system
Andreas Florath 20389d755f Fix dib-init-system for Debian Jessie and Debian Stretch
On Debian Jessie and Debian Stretch systemctl is in /bin.
If the package systemd-sysv is not installed the script
dib-init-system did not find the init system.
This patch fixes the problem: it also looks in /bin
for systemctl and if found decides for systemd.

Change-Id: I5a18052a070bad5e16b14672237a1e2b38513949
Signed-off-by: Andreas Florath <andreas@florath.net>
2017-03-11 14:04:13 +00:00
..
environment.d Release 1.25.2 2017-02-02 11:20:00 +11:00
install.d Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
post-install.d Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
pre-install.d Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
dib-init-system Fix dib-init-system for Debian Jessie and Debian Stretch 2017-03-11 14:04:13 +00:00
README.rst Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00

dib-init-system

Installs a script (dib-init-system) which outputs the type of init system in use on the target image. Also sets an environment variable DIB_INIT_SYSTEM to this value.

Any files placed in a init-scripts/INIT_SYSTEM directory inside the element will be copied into the appropriate directory if INIT_SYSTEM is in use on the host.

Environment Variables

DIB_INIT_SYSTEM
Description

One of upstart, systemd, or sysv depending on the init system in use for the target image.