package/openrc: drop custom getty service
authorCarlos Santos <unixmania@gmail.com>
Sun, 1 Mar 2020 15:17:44 +0000 (12:17 -0300)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 11 Mar 2020 16:46:41 +0000 (17:46 +0100)
commitcd7dcf83bc7e82dd773494efc8140a05990e5432
tree5765f171ce1d8e36ceee504a65067fe24803e8bb
parent469829d9c55b7f5461e29f3f6436417836504410
package/openrc: drop custom getty service

In Buildroot getty is provided by BusyBox or util-linux (agetty). Both
create a /sbin/getty symlink pointing to the actual program, so make the
agetty service use that path instead of /sbin/agetty.

Also start agetty after all other services, to prevent mixing startup
messages with the getty prompt on devices with a single serial console,
as the custom unit we're dopping was doing already.

This allows us to drop the custom getty service, which causes an error
message from openrc 0.42.1 (in a forthcoming patch):

    Error: getty is the name of a real and virtual service.

The patches are required because it's not possible to override the
command or startup order by means of a configuration file. Anyway it's
still better to patch something maintained upstream than depending on a
custom piece that may easily become obsolete.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
[yann.morin.1998@free.fr:
  - expand commit log to explain why we ve 'after *' in the same patch
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/openrc/0003-init.d-agetty-replace-sbin-agetty-by-sbin-getty.patch [new file with mode: 0644]
package/openrc/0004-init.d-agetty-start-agetty-after-all-sevices.patch [new file with mode: 0644]
package/openrc/getty [deleted file]
package/openrc/openrc.mk