View previous topic :: View next topic |
Author |
Message |
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Thu Aug 26, 2021 3:17 pm Post subject: elogind is a big, what instead of consolekit? [solved] |
|
|
I just did a stage3 install on a dual core arm (a hardware I designed using a Cyclone V SOC).
I got it working pretty well, but there is no console with the stage 3 tarball.
This is the depgraph for elogind:
Code: | Frankie_Baby ~ # equery g elogind
* Searching for elogind ...
* dependency graph for sys-auth/elogind-246.10-r1
`-- sys-auth/elogind-246.10-r1 arm
`-- sys-process/audit-3.0 (sys-process/audit) arm
`-- sys-apps/util-linux-2.36.2-r1 (sys-apps/util-linux) arm
`-- sys-libs/libcap-2.49-r1 (sys-libs/libcap) arm
`-- virtual/libudev-232-r4 (virtual/libudev) arm
`-- sys-apps/acl-2.3.1 (sys-apps/acl) arm
`-- sys-libs/pam-1.5.1-r1 (sys-libs/pam) arm
`-- sys-libs/libselinux-9999 (sys-libs/libselinux) [missing keyword]
`-- sys-apps/dbus-1.12.20-r3 (sys-apps/dbus) arm
`-- sys-auth/polkit-0.119-r2 (sys-auth/polkit) arm
`-- app-text/docbook-xml-dtd-4.2-r3 (app-text/docbook-xml-dtd) arm
`-- app-text/docbook-xml-dtd-4.5-r2 (app-text/docbook-xml-dtd) arm
`-- app-text/docbook-xsl-stylesheets-1.79.1-r2 (app-text/docbook-xsl-stylesheets) arm
`-- dev-util/gperf-3.1 (dev-util/gperf) arm
`-- dev-util/intltool-0.51.0-r2 (dev-util/intltool) arm
`-- virtual/pkgconfig-2 (virtual/pkgconfig) arm
`-- dev-util/meson-0.58.2 (>=dev-util/meson-0.56.0) arm
`-- dev-util/ninja-1.10.1 (>=dev-util/ninja-1.8.2) arm
`-- dev-util/meson-format-array-0 (dev-util/meson-format-array) arm
[ sys-auth/elogind-246.10-r1 stats: packages (19), max depth (1) ] |
This system only has 1G of memory and has been trying to install llvm and rust and you know what? There isn't enough memory to build them.
I can't figure out why they are needed.
But that's beside the point. I need a console and elogind is just not a possibility. I mean look at that depgraph. Why does it need all that crap? It's a stupid console.
Any suggestions?
Thanks in advance. _________________ Some day there will only be free software.
Last edited by RayDude on Fri Aug 27, 2021 3:27 am; edited 1 time in total |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Aug 26, 2021 3:24 pm Post subject: |
|
|
Which package(s) pull(s) in elogind?
Look at the output of:
and
Code: | emerge --update --deep --changed-use --tree -pv @world |
Which profile do you use? |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Thu Aug 26, 2021 3:38 pm Post subject: |
|
|
Code: | Frankie_Baby ~ # equery d elogind
* These packages depend on elogind:
sys-auth/pambase-20210201.1 (elogind ? sys-auth/elogind[pam])
sys-process/procps-3.3.17-r1 (elogind ? sys-auth/elogind)
Frankie_Baby ~ # emerge --update --deep --changed-use --tree -pv @world
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[nomerge ] virtual/ssh-0::gentoo USE="-minimal"
[ebuild R ] net-misc/openssh-8.6_p1-r2::gentoo USE="pam pie scp ssl -X -X509 (-audit) -bindist* (-debug) -hpn -kerberos -ldns -libedit -livecd -sctp (-security-key) (-selinux) -static -test -xmss" 0 KiB
[ebuild R ] sys-process/procps-3.3.17-r1:0/8::gentoo USE="elogind* kill ncurses nls (split-usr) (unicode) -modern-top (-selinux) -static-libs -systemd -test" 0 KiB
[nomerge ] sys-auth/elogind-246.10-r1::gentoo USE="acl pam policykit (-audit) -debug -doc (-selinux)"
[nomerge ] sys-auth/polkit-0.119-r2::gentoo USE="elogind introspection nls pam -examples -gtk (-kde) (-selinux) -systemd -test"
[ebuild R ] sys-auth/pambase-20210201.1::gentoo USE="elogind* nullok passwdqc sha512 -caps -debug -gnome-keyring -homed -minimal -mktemp -pam_krb5 -pam_ssh -pwhistory -pwquality -securetty (-selinux) -systemd" 0 KiB
[ebuild N ] sys-auth/polkit-0.119-r2::gentoo USE="elogind introspection nls pam -examples -gtk (-kde) (-selinux) -systemd -test" 0 KiB
[ebuild N ] sys-apps/dbus-1.12.20-r3::gentoo USE="elogind -X -debug -doc (-selinux) -static-libs -systemd -test -user-session" 0 KiB
[ebuild N ] sys-auth/elogind-246.10-r1::gentoo USE="acl pam policykit (-audit) -debug -doc (-selinux)" 0 KiB
[nomerge ] sys-apps/util-linux-2.36.2-r1::gentoo USE="cramfs logger ncurses nls pam python* readline (split-usr) suid udev* (unicode) (-audit) -build -caps -cryptsetup -fdformat -hardlink -kill -magic (-selinux) -slang -static-libs -su -systemd -test -tty-helpers" PYTHON_TARGETS="python3_9 -python3_8"
[nomerge ] virtual/libudev-232-r4:0/1::gentoo USE="-static-libs -systemd"
[ebuild U ] sys-fs/udev-249-r2::gentoo [248-r1::gentoo] USE="acl kmod (split-usr) (-selinux) -static-libs -test%" 0 KiB
[ebuild R ] sys-apps/util-linux-2.36.2-r1::gentoo USE="cramfs logger ncurses nls pam python* readline (split-usr) suid udev* (unicode) (-audit) -build -caps -cryptsetup -fdformat -hardlink -kill -magic (-selinux) -slang -static-libs -su -systemd -test -tty-helpers" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild N ] virtual/libudev-232-r4:0/1::gentoo USE="-static-libs -systemd" 0 KiB
[nomerge ] virtual/service-manager-1::gentoo
[ebuild U ] sys-apps/openrc-0.43.5::gentoo [0.42.1-r1::gentoo] USE="ncurses netifrc pam unicode (-audit) -bash -debug -newnet (-prefix) (-selinux) -sysv-utils (-split-usr%*) (-static-libs%)" 0 KiB
[nomerge ] sys-auth/polkit-0.119-r2::gentoo USE="elogind introspection nls pam -examples -gtk (-kde) (-selinux) -systemd -test"
[ebuild N ] dev-libs/gobject-introspection-1.68.0::gentoo USE="-doctool -gtk-doc -test" PYTHON_SINGLE_TARGET="python3_9 (-python3_10) -python3_8" 0 KiB
[ebuild N ] dev-util/desktop-file-utils-0.26-r1::gentoo USE="-emacs" 0 KiB
[ebuild R ] net-misc/iputils-20210202::gentoo USE="arping filecaps* ipv6 nls ssl -caps -clockdiff -doc -gcrypt -idn -nettle -rarpd -rdisc -static -tftpd -tracepath -traceroute6" 0 KiB
[ebuild NS ] sys-devel/binutils-2.36.1-r2:2.36::gentoo [2.35.2:2.35::gentoo] USE="gold nls plugins (-cet) -default-gold -doc -multitarget -static-libs -test -vanilla" 0 KiB
[nomerge ] sys-process/cronie-1.5.7::gentoo USE="anacron inotify pam (-selinux)"
[ebuild U ] sys-libs/pam-1.5.1-r1::gentoo [1.5.1::gentoo] USE="filecaps* (split-usr) (-audit) -berkdb -debug -nis (-selinux)" 0 KiB
[nomerge ] sys-auth/polkit-0.119-r2::gentoo USE="elogind introspection nls pam -examples -gtk (-kde) (-selinux) -systemd -test"
[ebuild N ] dev-lang/spidermonkey-78.12.0:78::gentoo USE="jit -clang -debug -lto -test" CPU_FLAGS_ARM="-neon" 0 KiB
[ebuild R ] sys-apps/kmod-29::gentoo USE="lzma python* (tools) zlib -debug -doc -pkcs7 -static-libs -zstd" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[nomerge ] sys-process/htop-3.0.5-r1::gentoo USE="unicode -debug -hwloc (-lm-sensors) -openvz -vserver"
[nomerge ] sys-devel/autoconf-2.69-r5:2.69::gentoo USE="-emacs"
[nomerge ] sys-devel/m4-1.4.19::gentoo USE="nls -examples"
[nomerge ] sys-devel/gettext-0.21-r1::gentoo USE="acl cxx ncurses nls openmp -cvs -doc -emacs -git (-java) -static-libs"
[ebuild U ] dev-libs/libxml2-2.9.12-r5:2::gentoo [2.9.12-r3:2::gentoo] USE="ipv6 python readline -debug -examples -icu -lzma -static-libs -test -verify-sig" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild R ] sys-apps/file-5.40-r3::gentoo USE="bzip2 python* seccomp zlib -lzma -static-libs" PYTHON_TARGETS="python3_9 (-python3_10) -python3_8" 0 KiB
[nomerge ] app-portage/gentoolkit-0.5.1-r1::gentoo USE="-test" PYTHON_TARGETS="python3_9 (-pypy3) (-python3_10) -python3_8"
[nomerge ] sys-apps/portage-3.0.20-r6::gentoo USE="(ipc) native-extensions rsync-verify xattr -apidoc -build -doc -gentoo-dev (-selinux) -test" PYTHON_TARGETS="python3_9 (-pypy3) (-python3_10) -python3_8"
[ebuild R ] app-misc/pax-utils-1.3.2::gentoo USE="python* seccomp -caps -debug" PYTHON_SINGLE_TARGET="python3_9 (-python3_10) -python3_8" 0 KiB
[ebuild N ] dev-python/pyelftools-0.27::gentoo USE="-examples" PYTHON_TARGETS="python3_9 (-python3_10) -python3_8" 0 KiB
[nomerge ] sys-apps/file-5.40-r3::gentoo USE="bzip2 python* seccomp zlib -lzma -static-libs" PYTHON_TARGETS="python3_9 (-python3_10) -python3_8"
[ebuild R ] sys-libs/libseccomp-2.5.1::gentoo USE="python* static-libs*" PYTHON_TARGETS="python3_9 -python3_8" 0 KiB
[ebuild N ] dev-python/cython-0.29.23::gentoo USE="-doc -emacs -test" PYTHON_TARGETS="python3_9 (-pypy3) (-python3_10) -python3_8" 0 KiB
[nomerge ] sys-apps/shadow-4.8.1-r4::gentoo USE="acl nls pam (split-usr) su xattr (-audit) -bcrypt -cracklib (-selinux) -skey"
[nomerge ] sys-auth/pambase-20210201.1::gentoo USE="elogind* nullok passwdqc sha512 -caps -debug -gnome-keyring -homed -minimal -mktemp -pam_krb5 -pam_ssh -pwhistory -pwquality -securetty (-selinux) -systemd"
[nomerge ] sys-auth/elogind-246.10-r1::gentoo USE="acl pam policykit (-audit) -debug -doc (-selinux)"
[ebuild U ] dev-util/meson-0.58.2::gentoo [0.58.1::gentoo] USE="(-test)" PYTHON_TARGETS="python3_9 (-python3_10) -python3_8" 0 KiB
[nomerge ] sys-process/htop-3.0.5-r1::gentoo USE="unicode -debug -hwloc (-lm-sensors) -openvz -vserver"
[nomerge ] sys-devel/libtool-2.4.6-r6:2::gentoo USE="-vanilla"
[nomerge ] sys-devel/autoconf-2.69-r5:2.69::gentoo USE="-emacs"
[nomerge ] dev-lang/perl-5.34.0:0/5.34::gentoo USE="gdbm -berkdb -debug -doc -ithreads -minimal"
[nomerge ] app-admin/perl-cleaner-2.30::gentoo
[nomerge ] app-portage/portage-utils-0.92::gentoo USE="nls openmp qmanifest qtegrity -static"
[ebuild R ] app-crypt/gpgme-1.15.1:1/11::gentoo USE="cxx python* -common-lisp -qt5 -static-libs" PYTHON_TARGETS="python3_9 (-python3_10) -python3_8" 0 KiB
[nomerge ] dev-lang/spidermonkey-78.12.0:78::gentoo USE="jit -clang -debug -lto -test" CPU_FLAGS_ARM="-neon"
[ebuild N ] virtual/rust-1.52.1::gentoo USE="-rustfmt" 0 KiB
[ebuild N ] dev-lang/rust-1.52.1:stable/1.52::gentoo USE="-clippy -debug -doc (-miri) (-nightly) (-parallel-compiler) -rls -rustfmt (-system-bootstrap) (-system-llvm) -test -verify-sig -wasm" LLVM_TARGETS="(ARM) -AArch64 -AMDGPU -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -X86 -XCore" 0 KiB
[ebuild N ] sys-devel/llvm-12.0.0:12::gentoo USE="libffi ncurses -debug -doc -exegesis -gold -libedit -test -xar -xml -z3" LLVM_TARGETS="(ARM) BPF -AArch64 -AMDGPU -ARC -AVR (-CSKY) -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -WebAssembly -X86 -XCore" 0 KiB
Total: 28 packages (5 upgrades, 12 new, 1 in new slot, 10 reinstalls), Size of downloads: 0 KiB
|
I'm using this profile, although I haven't reconfigured the compiler for it. I'm using the raspberry pi arm stage 3.
Code: | default/linux/arm/17.0/armv7a (dev) * |
_________________ Some day there will only be free software. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Thu Aug 26, 2021 4:23 pm Post subject: |
|
|
You know what?
This totally worked:
Code: | Frankie_Baby ~/ # emerge --nodeps -1q elogind
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sys-auth/elogind-246.10-r1::gentoo
>>> Installing (1 of 1) sys-auth/elogind-246.10-r1::gentoo
* Messages for package sys-auth/elogind-246.10-r1:
* Unable to find kernel sources at /usr/src/linux
* Unable to calculate Linux Kernel version for build, attempting to use running version
* elogind is currently not started from any runlevel.
* You may add it to the boot runlevel by:
* # rc-update add elogind boot
*
* Alternatively, you can leave elogind out of any
* runlevel. It will then be started automatically
* when the first service calls it via dbus, or
* the first user logs into the system.
|
But it doesn't run... At least I can't login from the console.
Code: | * ERROR: elogind needs service(s) dbus |
Let me one shot no deps that for the heck of it. _________________ Some day there will only be free software. |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Thu Aug 26, 2021 4:30 pm Post subject: |
|
|
Code: | USE="nptlonly nsplugin savedconfig \
-acl -dbus -elogind -exceptions -gnome -introspection -ipv6 -json -ldap -libav -pam -systemd -tcpd -vala" |
Simplifies some things, complicates others. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3458 Location: Canada
|
Posted: Thu Aug 26, 2021 4:50 pm Post subject: |
|
|
Sorry, but it is a bit of mess of a question, you have piled many issues in one.
What are you trying to achieve, console only system without graphics environment and without elogind ? The setting USE='-elogind' should do the trick. You should also get rid of polkit (the only package which unconditionally requires elogind on my system, at least), which should be possible if you do not use udisks, and upower |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54638 Location: 56N 3W
|
Posted: Thu Aug 26, 2021 4:58 pm Post subject: |
|
|
RayDude,
What does "no console" mean?
You can't log in, the screen is blank, the keyboard doesn't work?
Note of the above? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Thu Aug 26, 2021 5:21 pm Post subject: |
|
|
Thanks Neddy, dmpogo, cboldt.
This is an embedded system: no keyboard, no monitor, no USB, just a serial port and two ethernet ports.
NeddySeagoon wrote: | RayDude,
What does "no console" mean?
You can't log in, the screen is blank, the keyboard doesn't work?
Note of the above? |
There is no login prompt on the serial console. I can get in but only through ssh.
Isn't that what elogind is for? I mean isn't that what consolekit was for? I guess I'm just confused.
Here's an update: elogind is running because I installed dbus, but I still don't get a login prompt on the serial port and it is not displaying console messages.
Thanks. _________________ Some day there will only be free software. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54638 Location: 56N 3W
|
Posted: Thu Aug 26, 2021 5:41 pm Post subject: |
|
|
RayDude,
What do you have in /etc/inittab ?
The default is Code: | # SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100 | so there are no serial consoles enabled.
If this is wrong, the kernel messages appear but the login prompt never does.
The ttyS0 means put the console onto /dev/ttyS0.
That may not be right for your SoC. e.g. The Raspberry Pi needs Code: | # SERIAL CONSOLES
s0:12345:respawn:/sbin/agetty -L 115200 ttyAMA0 vt340 |
elogind is not required.
Kernel support for your serial port hardware and the serial console option in the kernel are essential.
Its really good to use the same serial port settings here as you pass on the kernel command line, or the kernel will change but whatever is listening to the serial port won't. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Thu Aug 26, 2021 5:53 pm Post subject: |
|
|
Not much needed to get a console, certainly not consolekit, polkit, dbus, or elogind.
Neddy has you on the right track. I'm surprised default /etc/inittab has all the getty's commented out!
Curious what you use to monitor with. I've used displayless laptops as server, and just ssh in with another machine providing keyboard and console - never crossed my mind to use serial port, USB, whatever. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22855
|
Posted: Thu Aug 26, 2021 6:01 pm Post subject: |
|
|
RayDude wrote: | Isn't that what elogind is for? I mean isn't that what consolekit was for? I guess I'm just confused. | No. elogind, like systemd-logind, is meant to be aware of users logging in and do certain secondary services on their behalf, such as mangling device ACLs. It has nothing to do with getting you a login shell. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Thu Aug 26, 2021 6:24 pm Post subject: |
|
|
Yep!
You guys are right. I didn't understand how it worked.
My serial port is simply /dev/ttyS0, I think and it looks enabled in inittab, but I think the baud rate is wrong. I'll figure out how to configure inittab now.
Imagine using linux all these years and not needing to learn this before now.
THANKS MUCH! _________________ Some day there will only be free software. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54638 Location: 56N 3W
|
Posted: Thu Aug 26, 2021 8:07 pm Post subject: |
|
|
RayDude,
ssh in, install minicom and do a loopback test on the serial port.
Turn off all handshaking, link the Tx and Rx pins together anh see that anything sent to the serial port comes back.
That proves most of the kernel setup. It will work at any baud rate, unless you can configure your arm system to do split baud rates.
Split baud rates were never a thing on the PC due to a design error by IBM.
To get kernel messages on the serial port, yon need to pass something like Code: | console=ttyS0,115200n8 | on the kernel command line.
That's the serial port and serial port settings.
The settings are optional. 9600n8 is the default. You need the same settings in inittab, or the serial port configuration will change when inittab is run. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Thu Aug 26, 2021 9:13 pm Post subject: |
|
|
I haven't had a chance to reboot and prove the serial console is working, but my other dependency issues went away as soon as I removed elogind from USE.
Thanks again for your help. _________________ Some day there will only be free software. |
|
Back to top |
|
|
RayDude Advocate
Joined: 29 May 2004 Posts: 2087 Location: San Jose, CA
|
Posted: Fri Aug 27, 2021 3:26 am Post subject: |
|
|
I enabled the correct device and it's working.
Thanks again for your help! _________________ Some day there will only be free software. |
|
Back to top |
|
|
|