Find the answer to your Linux question:
Results 1 to 2 of 2
inittab has been eliminated in fc 15 (Beta) (basically an empty file now) being replaced by systemd. In fc 14 /etc/sysconfig/init was used to change the number of ACTIVE_CONSOLES=/dev/tty[1-6]. That ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    12

    Question Beta fc 15 systemd tty configuration help needed


    inittab has been eliminated in fc 15 (Beta) (basically an empty file now) being
    replaced by systemd. In fc 14 /etc/sysconfig/init was used to change the number
    of ACTIVE_CONSOLES=/dev/tty[1-6]. That file exists in fc 15, but, has no effect
    (probally some other file has replaced it). What file do I edit to reduce this
    number? Is there any way to specify (custom) gettys and/or params for different
    tty[1-6] devices. (Note: fc 14 had an event.d dir where one could put differnt
    files for different devices for that).

    Does anyone know what the new files are in Beta fc 15 for fine tunning the
    getty console startup process.

    Any help will be greatly appreciated.

    Floyd,

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    12

    Arrow Solved

    After using find with grep I found the files needed with systemd for doing the customation I desired.

    When systemd is installed (as in Beta fc 15) it creates 6 files:
    /etc/systemd/system/getty.target.wants/getty@tty1.service
    /etc/systemd/system/getty.target.wants/getty@tty2.service
    /etc/systemd/system/getty.target.wants/getty@tty3.service
    /etc/systemd/system/getty.target.wants/getty@tty4.service
    /etc/systemd/system/getty.target.wants/getty@tty5.service
    /etc/systemd/system/getty.target.wants/getty@tty6.service

    These are all links to the single file:
    /lib/systemd/system/getty@.service
    # This file is part of systemd.
    #
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.

    [Unit]
    Description=Getty on %I
    BindTo=dev-%i.device
    After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
    After=rc-local.service

    # If additional gettys are spawned during boot then we should make
    # sure that this is synchronized before getty.target, even though
    # getty.target didn't actually pull it in.
    Before=getty.target

    [Service]
    Environment=TERM=linux
    ExecStart=-/sbin/agetty %I 38400
    Restart=always
    RestartSec=0
    UtmpIdentifier=%I

    # Unset locale for the console getty since the console has problems
    # displaying some internationalized messages.
    Environment=LANG= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MES
    SAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFIC
    ATION=

    # Some login implementations ignore SIGTERM, so we send SIGHUP
    # instead, to ensure that login terminates cleanly.
    KillSignal=SIGHUP

    [Install]
    Alias=getty.target.wants/getty@tty1.service getty.target.wants/getty@tty2.servic
    e getty.target.wants/getty@tty3.service getty.target.wants/getty@tty4.service ge
    tty.target.wants/getty@tty5.service getty.target.wants/getty@tty6.service

    Thus, to use a custom getty or parameter passing, you need to edit this file. I do this with sed in my kickstart file.

    You can also create more console terminals by simply:
    cd /
    ln -s ../../../lib/systemd/system/getty@.service etc/systemd/system/getty.target.wants/getty@tty7.service
    for tty7.

    Do not create any past 11 - you must leave at lease one free else "X" will not start with startX.

    Floyd,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •