[initial-setup][PATCH] Prevent getty on various services killing us (#979174)

Martin Kolman mkolman at redhat.com
Mon Aug 26 15:56:15 UTC 2013


On Thu, 2013-08-22 at 12:02 +0200, Vratislav Podzimek wrote:
> Unfortunately, systemd doesn't allow to specify something like
> 'Before=getty.service serial-getty.service' so we must list all consoles and
> serial-consoles manually. The proper solution would be to have a special
> initial-setup.target, but that's a long-term goal that would require a lot more
> work. This is a worse but small patch for the issue.
> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  systemd/initial-setup-text.service | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/systemd/initial-setup-text.service b/systemd/initial-setup-text.service
> index 5609e3b..71c3254 100644
> --- a/systemd/initial-setup-text.service
> +++ b/systemd/initial-setup-text.service
> @@ -2,7 +2,9 @@
>  Description=Initial Setup configuration program (text mode)
>  After=livesys.service plymouth-quit-wait.service
>  After=systemd-vconsole-setup.service
> -Before=display-manager.service getty at tty1.service serial-getty at ttyS0.service
> +Before=display-manager.service getty at tty1.service getty at ttyUSB0.service
> +Before=serial-getty at ttyS0.service serial-getty at ttyO0.service serial-getty at ttyO2.service
> +Before=serial-getty at ttyAMA0.service serial-getty at ttymxc0.service
>  Conflicts=plymouth-quit-wait.service
>  Conflicts=initial-setup-graphical.service
>  After=initial-setup-graphical.service
Looks good to me.



More information about the anaconda-patches mailing list