Hi all,
I am performing a customized installation of CentOS, where instead of standard Anaconda, installation wizard, I am invoking my own wizard which will collect inputs for installation
My code is based on newt (
https://pagure.io/newt) and uses python3.4
I am facing a challenge that before wizard could complete, it goes to subsequent service in my case
getty@tty1.service, getty.target, multi-user.target
so I get the login prompt test login:
How do I ensure, this prompt/ or my wizard completes before login prompt comes
I am putting my systemd service file contents below
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See systemd.special(7) for details
[Unit]
Description=Start Wizard as a service
DefaultDependencies=no
After=sshd.service
ConditionPathExists=/opt/install/
Before=getty@tty1.service
getty@tty2.service
getty@rrt3.service
getty@tty4.service
getty@tty5.service
getty@tty6.service
[Service]
Environment=TERM=vt220
Type=oneshot
ExecStart=/opt/install/bin/menu.sh
StandardInput=tty-force
StandardOutput=console
StandardError=syslog+console
RemainAfterExit=yes
TimeoutSec=0
[install]
# Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
# terminates cleanly.
WantedBy=multi-user.target