[systemd] lightdm autologin fails somehow #103
Labels
No labels
Done
bug
buildiso
buildpkg
buildtree
critical
deployiso
duplicate
enhancement
help wanted
in progress
invalid
manjaro-chroot
note
old-not-relevant
optional
question
sonar
todo
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tools/manjaro-tools#103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: philmmanjaro
This is really strange. Yesterday I did a dev-build with manjaro-tools-git (r1276.120bfcb-1). However, todays build with latest manjaro-tools-git lightdm doesn't autologin anymore. I tried to fix it in devel branch, but still no working solution ...
Created by: Kirek
github.com/manjaro/manjaro-tools@cfba310482 (diff-32a62f488a)Changed there.
autologin var is never set here because this is called from the livecd script.
In fact autologin should be setup in the installer and selected by the user, not in buildiso...
We only set autologin in the livecd user
Created by: philmmanjaro
Well, I tested also manjaro-tools 0.9.8 which failed me also. I checked all lightdm.conf files. Here is the working log output of yesterdays build:
Created by: philmmanjaro
And this is what I get now:
... I had to login manually:
Created by: Kirek
github.com/manjaro/manjaro-tools@3fb92f36d3 (diff-7ef5e7eef3)Created by: Kirek
Simply its not setup, its protected by the "autologin" var, in the livecd this is empty, also we call this function specifically to setup autologin, doesn't need to be protected by a var.
Created by: udeved
We need to write the autologin var to the profile.conf which is copied to livecd. write_profile_conf_entries()
I confused it, and statically set it up in wrong file.
Created by: Kirek
But why? Why the livecd user shouldn't autologin? It's a needed feature someone asked for it?
Created by: udeved
Huh?
We set up autologin var same as custom var.
autologin var was empty/unused, because it was configure in wrong conf file.
This way, you can simply switch autologin on or off.
I just forgot to write the autologin value also to profile.conf on iso, so it gets loaded.
Created by: udeved
@philmmanjaro
Did you add the autologin var to profile.conf?
The confusion is overcome.
We source and load the conf, so I don't see why we can't have autologin var.
Created by: philmmanjaro
Please check the lightdm log I posted. It doesn't matter if I use manjaro 0.9.8 or the latest git snapshot. Autologin fails. However the packages are the same. So this is weird. This is my profile:
########################################## ###### use this file in the profile ###### ########################################## # possible values: openrc,systemd initsys="systemd" displaymanager="lightdm" ################ install ################ # unset defaults to given value # kernel="linux318" kernel="linux40" # unset defaults to given value # efi_boot_loader="grub" # set uefi partition size # efi_part_size=31M # unset defaults to given value # plymouth_theme=manjaro-elegant # unset defaults to given values # names must match systemd service names # start_systemd=('bluetooth' 'cronie' 'ModemManager' 'NetworkManager' 'org.cups.cupsd' 'tlp' 'tlp-sleep') # unset defaults to given values, # names must match openrc service names # start_openrc=('acpid' 'bluetooth' 'consolekit' 'cronie' 'cupsd' 'dbus' 'syslog-ng' 'NetworkManager') ################# livecd ################# # unset defaults to given value # hostname="manjaro" # unset defaults to given value # username="manjaro" # unset defaults to given value # password="manjaro" # unset defaults to given values # addgroups="video,audio,power,disk,storage,optical,network,lp,scanner,wheel" # unset defaults to given values # names must match systemd service names # services in start_systemd array don't need to be listed here # start_systemd_live=('livecd' 'mhwd-live' 'pacman-init' 'pacman-boot') # unset defaults to given values, # names must match openrc service names # services in start_openrc array don't need to be listed here # start_openrc_live=('livecd' 'mhwd-live' 'pacman-init' 'pacman-boot')Created by: Kirek
The contents of /etc/lightdm/lightdm.conf in the livecd would be more helpfull, as we can see what's modified.
Created by: philmmanjaro
Here we go:
Created by: philmmanjaro
Somehow lightdm doesn't find the session configuration:
then it loads the greeter. It would be best if you try to build xfce-minimal systemd for yourself.
Created by: philmmanjaro
This is really weird. It doesn't matter what is configurated in lightdm.conf. This is what Arch is recommending:
Enabling autologin
Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured (/etc/lightdm/lightdm.conf)
LightDM goes through PAM even when autologin is enabled. You must be part of the autologin group to be able to login without entering your password:
To match it, I simply added:
... which didn't change anything. It might be inside of systemd. I still don't know how to list the order of loaded services, so I may check if some had changed ... May livecd change seems not to be the origin of this issue. It doesn't matter, as I tested it locally by reverting it ... Some is really fishy here ...
Created by: Kirek
built xfce-minimal with latest manjaro-tools
github.com/manjaro/manjaro-tools@07e0659c93and it autologs without problems.Created by: philmmanjaro
Ok, I'll check again. Might be a glitch in the Matrix ... I assume you used unstable branch ...
Created by: philmmanjaro
Hmm. Really weird. Seems this issue is back. Also I got reports from others regarding this matter ...
Created by: philmmanjaro
Hmm, current build with XFCE and lightdm works again with latest devel-branch. Weird.
Created by: drevoborod
this issue is actual also for INSTALLED archlinux with XFCE+lightdm.
And instructions in archwiki are different at the moment, but also doesn't work:
Created by: philmmanjaro
Yeah, we will see how often it will happen after all. Really a weird issue, though.