]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
system: move setting getty to the corresponding init systems
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 18 Jul 2017 17:25:32 +0000 (19:25 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Jul 2017 20:33:38 +0000 (22:33 +0200)
commitb07ccc47cb511b877e6e7bb45c511e0646cb5528
treeef75bd79434e25917854e4994567bde9640927aa
parent2de968f03a76c3feb5c7693cfc05a6342fcc12ae
system: move setting getty to the corresponding init systems

Currently, setting the getty is done:
  - by the skeleton package when the init system is either busybox or
    sysvinit;
  - by the systemd package when the init system is systemd;
both by registering a target-finalize hook.

This is not very consistent.

Move setting the getty out of the skeleton and into the package that
provides the init system, by registering a per-package target-fialize
hook.

This offloads yet a bit more out of the skeleton, so that it is easier
to properly separate the skeletons for the various init systems.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/busybox/busybox.mk
package/skeleton/skeleton.mk
package/sysvinit/sysvinit.mk
system/system.mk