Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691854 - sys-apps/systemd-242-r6: no console on tty1
Summary: sys-apps/systemd-242-r6: no console on tty1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-09 17:15 UTC by Anna Tikhomirova
Modified: 2019-08-13 08:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anna Tikhomirova 2019-08-09 17:15:26 UTC
After installing >=sys-apps/systemd-242 there is no console on tty1.

The workaround is to manually enable getty@tty1.service.

machines.target and remote-fs.target are also disabled.

This affects both upgrades and new installs (from stage3).

Old version (239 in my case):

# emerge --info systemd
<skipped>
sys-apps/systemd-239-r2::gentoo was built with the following:
USE="acl elfutils gcrypt idn kmod lz4 lzma pam pcre seccomp (split-usr) ssl sysv-utils -apparmor -audit -build -cryptsetup -curl -gnuefi -http -importd -libidn2 -nat -policykit -qrcode -resolvconf (-selinux) -test -vanilla -xkb" ABI_X86="(64) -32 (-x32)"
<skipped>

# equery f systemd
<skipped>
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service -> ../../../../lib/systemd/system/getty@.service
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/machines.target -> ../../../../lib/systemd/system/machines.target
/etc/systemd/system/multi-user.target.wants/remote-fs.target -> ../../../../lib/systemd/system/remote-fs.target
<skipped>

New version:

# emerge --info systemd
<skipped>
sys-apps/systemd-242-r6::gentoo was built with the following:
USE="acl elfutils gcrypt idn kmod libidn2 lz4 lzma pam pcre seccomp (split-usr) sysv-utils -apparmor -audit -build -cryptsetup -curl -dns-over-tls -gnuefi -http -importd -nat -policykit -qrcode -resolvconf (-selinux) -test -vanilla -xkb" ABI_X86="(64) -32 (-x32)"
<skipped>


# equery f systemd
<skipped>
/etc/systemd/system/getty.target.wants
/etc/systemd/system/multi-user.target.wants
<skipped>

# ls -la /etc/systemd/system/getty.target.wants/
total 8
drwxr-xr-x  2 root root 4096 Aug  9 13:54 .
drwxr-xr-x 10 root root 4096 Aug  9 14:56 ..

Also see: https://github.com/systemd/systemd/issues/12345
Comment 2 nvaert1986 2019-08-10 19:32:40 UTC
I had the same issue after a new installation using the Admin Live CD. Since the Admin Live CD has no systemd, a lot of commands inside the chroot arent't working (systemctl, timedatectl etc.). The command below resolved the issue.

P.S.: I did a stage1 installation, but just tried it with a stage3 in a VM and produces the same behavior
Comment 3 Larry the Git Cow gentoo-dev 2019-08-11 16:07:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d627c578b9e27b5349f39fcd238f108734c115f5

commit d627c578b9e27b5349f39fcd238f108734c115f5
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-08-11 16:07:32 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-08-11 16:07:32 +0000

    sys-apps/systemd: add postinst message about "systemctl preset-all"
    
    Closes: https://bugs.gentoo.org/691854
    Package-Manager: Portage-2.3.71, Repoman-2.3.16_p24
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/systemd-242-r6.ebuild     | 5 +++++
 sys-apps/systemd/systemd-243_rc1-r1.ebuild | 5 +++++
 sys-apps/systemd/systemd-9999.ebuild       | 5 +++++
 3 files changed, 15 insertions(+)
Comment 4 Alexander Tsoy 2019-08-12 08:03:12 UTC
Note that "systemctl preset-all" disables all 3rd party services. So people who have already enabled some services should use "systemctl preset-all --preset-mode=enable-only" instead.
Comment 5 Pacho Ramos gentoo-dev 2019-08-12 08:53:20 UTC
Why don't run it automatically for first installation? It seems all people shall run it manually anyway for those cases :/
Comment 6 Anna Tikhomirova 2019-08-12 11:03:51 UTC
preset-all may enable a bunch of unneeded stuff. I think better solution is just to enable some services by default, as Arch & Ubuntu does (namely: getty@tty1.service and remote-fs.target) and leave other services at user discretion.
Comment 7 Larry the Git Cow gentoo-dev 2019-08-12 14:12:08 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d80667d80ec11906c6b3b570f5bb9a55a0e7b318

commit d80667d80ec11906c6b3b570f5bb9a55a0e7b318
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-08-12 14:11:15 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-08-12 14:12:02 +0000

    sys-apps/systemd: enable some basic services for new installs
    
    Also update the preset-all postinst message.
    
    Bug: https://bugs.gentoo.org/691854
    Package-Manager: Portage-2.3.71, Repoman-2.3.16_p24
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/systemd-242-r6.ebuild     | 13 ++++++++-----
 sys-apps/systemd/systemd-243_rc1-r2.ebuild | 13 ++++++++-----
 sys-apps/systemd/systemd-9999.ebuild       | 13 ++++++++-----
 3 files changed, 24 insertions(+), 15 deletions(-)
Comment 8 Pacho Ramos gentoo-dev 2019-08-13 08:23:51 UTC
Thanks!