Browse Source

provide a tty classic service as tty-earlier@ for tty12(or other) to avoid dependencies of the tty@ service

2.3.1
obarun 1 year ago
parent
commit
b1f96cb469
  1. 1
      INSTALL.md
  2. 3
      module/boot@/configure/configure
  3. 13
      module/boot@/service@/tty-earlier@
  4. 3
      service/boot@

1
INSTALL.md

@ -27,7 +27,6 @@ You can customize paths via flags given to configure. See `./configure --help` f
- 66-tools version 0.0.7.0 or later: https://framagit.org/Obarun/66-tools/
- s6-linux-utils version 2.5.1.4 or later: http://skarnet.org/software/s6-linux-utils/
- s6-portable-utils version 2.2.3.1 or later: http://skarnet.org/software/s6-portable-utils/
- tty@-66serv version 0.2.0 or later: https://framagit.org/pkg/observice/tty_instance-66serv
- bash
- iproute2
- kmod

3
module/boot@/configure/configure vendored

@ -127,6 +127,9 @@ sv_comment_real() {
fi
}
66-yeller %benable%n service: "tty-earlier@tty12"
touch "${service_dir}/tty-earlier@tty12" || die "unable to create ${service_dir}/tty-earlier@tty12"
for sv in ${sv_boolean_list}; do
if [ "${sv}" = "CONTAINER" ]; then
continue

13
module/boot@/service@/tty-earlier@

@ -0,0 +1,13 @@
[main]
@type = classic
@version = @vers@
@description = "Launch earlier @I"
@user = ( root )
@options = ( !log )
[start]
@build = auto
@execute = ( execl-cmdline -s { agetty ${cmd_args} @I } )
[environment]
cmd_args=!-J 38400

3
service/boot@

@ -13,10 +13,9 @@
::@live_dir@=@livedir@
::@vers@=@VERSION@
)
@addservices = ( tty@tty12 )
[environment]
# Copyright (c) 2015-2020 Eric Vidal <eric@obarun.org>
# Copyright (c) 2015-2021 Eric Vidal <eric@obarun.org>
# All rights reserved.
#
# This file is part of Obarun. It is subject to the license terms in

Loading…
Cancel
Save