Bug 818673

Summary: Splash does not disappear when systemd asks for LUKS passphrase
Product: [openSUSE] openSUSE 13.1 Reporter: Jan Kara <jack>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: fbui, forgotten_sM9JzehKpy, jack, jnelson-suse, suse-beta
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Log file from systemd.log_level=debug
fstab
crypttab
plymouth-debug.log

Description Jan Kara 2013-05-06 22:34:50 UTC
I have an encrypted /home partition using LUKS. After I installed 12.3, system correctly asks for password so that it can mount /home during boot. But splash does not disappear when the system is asking for password so I have to press Esc to see the prompt for password.
Comment 1 Frederic Crozat 2013-05-29 09:53:26 UTC
could you boot with "systemd.log_level=debug" (on kernel command line) and once system is booted, attach full dmesg output to this bug report ?

Thanks.
Comment 2 Jan Kara 2013-05-31 11:11:01 UTC
Created attachment 542113 [details]
Log file from systemd.log_level=debug
Comment 3 Frederic Crozat 2013-05-31 14:03:14 UTC
could you attach /etc/fstab and /etc/crypttab ? 

it looks like systemd-ask-password-plymouth.service doesn't start properly (or something around that).

Could you try to paste journalctl -b -u systemd-ask-password-plymouth.service ?
Comment 4 Jan Kara 2013-05-31 14:26:01 UTC
Created attachment 542145 [details]
fstab
Comment 5 Jan Kara 2013-05-31 14:26:31 UTC
Created attachment 542146 [details]
crypttab
Comment 6 Jan Kara 2013-05-31 14:27:58 UTC
The command 'journalctl -b -u systemd-ask-password-plymouth.service' (done as root) returns just:
-- Logs begin at Fri, 2013-05-31 12:03:24 CEST, end at Fri, 2013-05-31 16:26:43 CEST. --
Comment 7 Frederic Crozat 2013-05-31 14:31:58 UTC
(In reply to comment #6)
> The command 'journalctl -b -u systemd-ask-password-plymouth.service' (done as
> root) returns just:
> -- Logs begin at Fri, 2013-05-31 12:03:24 CEST, end at Fri, 2013-05-31 16:26:43
> CEST. --

could you try:
systemctl status systemd-ask-password-plymouth.service ?
Comment 8 Jan Kara 2013-05-31 14:47:21 UTC
quack:/crypted/home/jack # systemctl status systemd-ask-password-plymouth.service
systemd-ask-password-plymouth.service - Forward Password Requests to Plymouth
	  Loaded: loaded (/usr/lib/systemd/system/systemd-ask-password-plymouth.service; static)
	  Active: inactive (dead) since Fri, 2013-05-31 12:03:41 CEST; 4h 42min ago
	 Process: 421 ExecStart=/usr/bin/systemd-tty-ask-password-agent --watch --plymouth (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/systemd-ask-password-plymouth.service

May 31 12:03:26 quack.suse.cz systemd[1]: Starting Forward Password Requests....
May 31 12:03:26 quack.suse.cz systemd[1]: Started Forward Password Requests ....
Comment 9 Frederic Crozat 2013-05-31 14:59:00 UTC
hmm, nothing really interesting there :(

Try booting with "plymouth.debug" and attach /var/log/plymouth-debug.log file, to see what is going on with plymouth..
Comment 10 Jan Kara 2013-05-31 19:40:59 UTC
Created attachment 542174 [details]
plymouth-debug.log
Comment 11 Frederic Crozat 2013-06-03 02:21:50 UTC
*** Bug 818821 has been marked as a duplicate of this bug. ***
Comment 12 Frederic Crozat 2013-06-03 03:27:12 UTC
I'm a bit perplex why plymouth doesn't switch to the "password" graphics prompt.

Maybe Raymond will have a idea ?
Comment 13 Jan Kara 2013-11-18 08:25:23 UTC
Two observations:
1) With current openSUSE 12.3 + updates the problem doesn't happen always but once in 3-5 boots.
2) I use xfce environment. The problems happens if and only if after I log into the graphical login screen, xfce hangs during startup. This hang magically resolves itself by switching to another console and back.
Comment 14 systemd maintainers 2013-11-26 09:42:32 UTC
Ping ... Raymond?  Do you have an idea? Please refer to comment #12
Comment 15 Forgotten User sM9JzehKpy 2013-11-26 11:01:49 UTC
The request for the password is done from the initrd with the help of the script /lib/mkinitrd/scripts/boot-luks.sh.  

This was adjusted in the early days of the plymouth implementation and that one is just doing the following: 

if luks_check_ply; then
        pass=`plymouth ask-for-password --prompt="Enter LUKS Passphrase"`


Back then, this would instruct the running plymouth daemon to show the indicated prompt and a field to enter the password. 

As far as I know, the systemd service systemd-ask-password-plymouth, shouldn't really be necessary as that boot-luks,sh should make the call directly to plymouth itself. 

The user confirms that this is not always happening, so maybe it is a race between plymouth and the systemd service ? 

@Frederic, for what else is the systemd-ask-password-plymouth.service used for ? Or could the user safely disable the service and then see if the problem still occurs ? 

Raymond
Comment 16 Frederic Crozat 2013-12-11 16:50:11 UTC
(In reply to comment #15)

> @Frederic, for what else is the systemd-ask-password-plymouth.service used for
> ? Or could the user safely disable the service and then see if the problem
> still occurs ? 

the ask-password-plymouth service can also be used for quering passphrase for apache SSL server or openvpn. But that's it.
Comment 17 Jan Kara 2014-12-19 21:49:28 UTC
I just updated to 13.2 and the problem is still there. However now it happens reliably (thinking about it, it was happening reliably with 12.3 lately as well).

The system where this happens is a laptop in a docking station. I have observed that the problem now happens reliably when the laptop is in the docking station and external monitor is attached (which has a different resolution than the internal laptop display). When I boot the laptop without external monitor, the problem doesn't happen and the graphical prompt for the password appears just fine.
Comment 18 Jan Kara 2015-12-21 08:44:09 UTC
The problem still exists in openSUSE Leap 42.1. Can someone please have a look?
Comment 19 Christian Boltz 2015-12-21 11:50:02 UTC
(In reply to Jan Kara from comment #17)
> The system where this happens is a laptop in a docking station. I have
> observed that the problem now happens reliably when the laptop is in the
> docking station and external monitor is attached (which has a different
> resolution than the internal laptop display). 

Did you try to enter the password "blindly"? Maybe the password prompt is displayed off-screen thanks to the different resolutions - at least I had that problem with my old laptop + external screen.
Comment 20 Franck Bui 2015-12-22 17:17:37 UTC
(In reply to Jan Kara from comment #17)
> I just updated to 13.2 and the problem is still there. However now it
> happens reliably (thinking about it, it was happening reliably with 12.3
> lately as well).
> 
> The system where this happens is a laptop in a docking station. I have
> observed that the problem now happens reliably when the laptop is in the
> docking station and external monitor is attached (which has a different
> resolution than the internal laptop display)

Which problem exactly ?

According to your initial report, that would be: when your laptop is plugged to your docking station, you can see the splash screen on your external monitor but need to press ESC to see the prompt for the password.

Is this correct otherwise it's probably a different bug.

Here I setup a system with /home encrypted and all seems to work fine: plymouth prompts me for a password at boot and there's no need to press ESC. So your initial bug seems to be fixed by splash or systemd updates.

> When I boot the laptop without
> external monitor, the problem doesn't happen and the graphical prompt for
> the password appears just fine.

So this seems to confirm what I think: your initial bug has been fixed and you're now hit by a new bug.
Comment 21 Jan Kara 2015-12-23 09:41:38 UTC
(In reply to Christian Boltz from comment #19)
> (In reply to Jan Kara from comment #17)
> > The system where this happens is a laptop in a docking station. I have
> > observed that the problem now happens reliably when the laptop is in the
> > docking station and external monitor is attached (which has a different
> > resolution than the internal laptop display). 
> 
> Did you try to enter the password "blindly"? Maybe the password prompt is
> displayed off-screen thanks to the different resolutions - at least I had
> that problem with my old laptop + external screen.

Bingo! Entering password blindly works - i.e., encrypted /home is mounted and boot continues.
Comment 22 Jan Kara 2015-12-23 09:52:08 UTC
(In reply to Franck Bui from comment #20)
> (In reply to Jan Kara from comment #17)
> > I just updated to 13.2 and the problem is still there. However now it
> > happens reliably (thinking about it, it was happening reliably with 12.3
> > lately as well).
> > 
> > The system where this happens is a laptop in a docking station. I have
> > observed that the problem now happens reliably when the laptop is in the
> > docking station and external monitor is attached (which has a different
> > resolution than the internal laptop display)
> 
> Which problem exactly ?
> 
> According to your initial report, that would be: when your laptop is plugged
> to your docking station, you can see the splash screen on your external
> monitor but need to press ESC to see the prompt for the password.
> 
> Is this correct otherwise it's probably a different bug.

Yes, what you describe above is the problem I have.
 
> Here I setup a system with /home encrypted and all seems to work fine:
> plymouth prompts me for a password at boot and there's no need to press ESC.
> So your initial bug seems to be fixed by splash or systemd updates.
>
> > When I boot the laptop without
> > external monitor, the problem doesn't happen and the graphical prompt for
> > the password appears just fine.
> 
> So this seems to confirm what I think: your initial bug has been fixed and
> you're now hit by a new bug.

It has always been this way. Without external monitor connected, everything works as it should. With external monitor connected, only splash is visible both on external monitor and internal laptop display.
Comment 23 Franck Bui 2015-12-23 10:41:32 UTC
(In reply to Jan Kara from comment #22)
> (In reply to Franck Bui from comment #20)
> > (In reply to Jan Kara from comment #17)
> > > I just updated to 13.2 and the problem is still there. However now it
> > > happens reliably (thinking about it, it was happening reliably with 12.3
> > > lately as well).
> > > 
> > > The system where this happens is a laptop in a docking station. I have
> > > observed that the problem now happens reliably when the laptop is in the
> > > docking station and external monitor is attached (which has a different
> > > resolution than the internal laptop display)
> > 
> > Which problem exactly ?
> > 
> > According to your initial report, that would be: when your laptop is plugged
> > to your docking station, you can see the splash screen on your external
> > monitor but need to press ESC to see the prompt for the password.
> > 
> > Is this correct otherwise it's probably a different bug.
> 
> Yes, what you describe above is the problem I have.
>  
> > Here I setup a system with /home encrypted and all seems to work fine:
> > plymouth prompts me for a password at boot and there's no need to press ESC.
> > So your initial bug seems to be fixed by splash or systemd updates.
> >
> > > When I boot the laptop without
> > > external monitor, the problem doesn't happen and the graphical prompt for
> > > the password appears just fine.
> > 
> > So this seems to confirm what I think: your initial bug has been fixed and
> > you're now hit by a new bug.
> 
> It has always been this way.

Not really: your *initial* report (from 2013-05-06 22:34:50 UTC) didn't mention any usage of an external monitor.

You started adding the usage of an external monitor in the picture since comment #17.

> Without external monitor connected, everything
> works as it should. 

Then as I stated previously, the issue is different from the original one (see the summary of your report).

> With external monitor connected, only splash is visible
> both on external monitor and internal laptop display.

Looks like an issue specific to plymouth now where the later doesn't handle external monitor very well. In that case closing this bug and opening a new one describing (in the summary) your specific use case might be a good idea.
Comment 24 Jan Kara 2015-12-23 10:51:35 UTC
(In reply to Franck Bui from comment #23)
> (In reply to Jan Kara from comment #22)
> > (In reply to Franck Bui from comment #20)
> > > (In reply to Jan Kara from comment #17)
> > > > I just updated to 13.2 and the problem is still there. However now it
> > > > happens reliably (thinking about it, it was happening reliably with 12.3
> > > > lately as well).
> > > > 
> > > > The system where this happens is a laptop in a docking station. I have
> > > > observed that the problem now happens reliably when the laptop is in the
> > > > docking station and external monitor is attached (which has a different
> > > > resolution than the internal laptop display)
> > > 
> > > Which problem exactly ?
> > > 
> > > According to your initial report, that would be: when your laptop is plugged
> > > to your docking station, you can see the splash screen on your external
> > > monitor but need to press ESC to see the prompt for the password.
> > > 
> > > Is this correct otherwise it's probably a different bug.
> > 
> > Yes, what you describe above is the problem I have.
> >  
> > > Here I setup a system with /home encrypted and all seems to work fine:
> > > plymouth prompts me for a password at boot and there's no need to press ESC.
> > > So your initial bug seems to be fixed by splash or systemd updates.
> > >
> > > > When I boot the laptop without
> > > > external monitor, the problem doesn't happen and the graphical prompt for
> > > > the password appears just fine.
> > > 
> > > So this seems to confirm what I think: your initial bug has been fixed and
> > > you're now hit by a new bug.
> > 
> > It has always been this way.
> 
> Not really: your *initial* report (from 2013-05-06 22:34:50 UTC) didn't
> mention any usage of an external monitor.
> 
> You started adding the usage of an external monitor in the picture since
> comment #17.

Yes, but I was always testing with it. Only at the time of comment 17 I figured out that is what makes a difference for me...

> > Without external monitor connected, everything
> > works as it should. 
> 
> Then as I stated previously, the issue is different from the original one
> (see the summary of your report).
> 
> > With external monitor connected, only splash is visible
> > both on external monitor and internal laptop display.
> 
> Looks like an issue specific to plymouth now where the later doesn't handle
> external monitor very well. In that case closing this bug and opening a new
> one describing (in the summary) your specific use case might be a good idea.

OK, I can report the bug again if it helps. Feel free to close this bug as you wish.
Comment 25 Franck Bui 2015-12-23 11:53:01 UTC
(In reply to Jan Kara from comment #24)
> OK, I can report the bug again if it helps. Feel free to close this bug as
> you wish.

or you might want to update the bug summary to something more relevant. It would include the following keywords "plymouth, dual-screen, passphrase, etc..."

I'm resetting assignee to default since it doesn't seem to be a bug related to systemd but plymouth.
Comment 26 Christian Boltz 2015-12-23 13:47:51 UTC
maybe closing as a duplicate of bug 804607 would be the easiest solution ;-)
(assuming it's really just the misplaced/off-screen passphrase input field)
Comment 27 Jan Kara 2015-12-23 14:51:39 UTC
I agree. Closing the bug.

*** This bug has been marked as a duplicate of bug 804607 ***