[Bug 749706] New: systemd-cryptsetup ignores timeout parameter of /etc/crypttab
https://bugzilla.novell.com/show_bug.cgi?id=749706 https://bugzilla.novell.com/show_bug.cgi?id=749706#c0 Summary: systemd-cryptsetup ignores timeout parameter of /etc/crypttab Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: endym@gmx.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 In the openSUSE 12.1 installation I chose to encrypt the whole home partition. When booting the systemd cryptsetup.service ask for the passphrase. If the passphrase is not entered within about 80 seconds, the boot process continues automatically (of course without mounting the home partition) to the user login screen (KDM). This behavior is very annoying because of: 1. an average user will login now and will not see his normal desktop, but a fresh KDE desktop without access to his data 2. if you are not root you have to reboot now To disable the timeout I added the option "timeout=0" in /etc/crypttab (fourth parameter): cat /etc/crypttab cr_sdb3 /dev/disk/by-id/ata-WDC_WD2500BEVS-60UST0_WD-WXE808P0A960-part3 none timeout=0 But this does not change anything. The timeout is still enabled. dmesg (after timeout): systemd[1]: Job dev-mapper-cr_sdb3.device/start timed out. systemd[1]: Job cryptsetup@cr_sdb3.service/start failed with result 'dependency'. systemd[1]: Job home.mount/start failed with result 'dependency'. systemd[1]: Job fsck@dev-mapper-cr_sdb3.service/start failed with result 'dependency'. systemd[1]: Job dev-mapper-cr_sdb3.device/start failed with result 'timeout'. systemd-cryptsetup[1882]: Timed out systemd-cryptsetup[1882]: Failed to query password: Timer expired systemd[1]: cryptsetup@cr_sdb3.service: main process exited, code=exited, status=1 systemd[1]: Unit cryptsetup@cr_sdb3.service entered failed state. rpm -q systemd: systemd-37-3.6.1.x86_64 uname -srvom: Linux 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) x86_64 GNU/Linux Reproducible: Always Steps to Reproduce: 1. Encrypt the home partition with the YaST partition manager 2. Add the option "timeout=0" in /etc/crypttab (fourth parameter) 3. Reboot 4. Do not enter the passphrase - wait about 80 seconds Actual Results: Boot process is continued automatically of course without mounting the home partition. Expected Results: systemd waits forever for passphrase entry (boot process stopp) For additional information see this forum thread: http://forums.opensuse.org/forums/english/get-technical-help-here/install-bo... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c1
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c2
--- Comment #2 from endym ion
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c3
--- Comment #3 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c4
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c5
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c6
--- Comment #6 from Axel Braun
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c7
--- Comment #7 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c8
--- Comment #8 from Axel Braun
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c9
--- Comment #9 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c10
--- Comment #10 from Axel Braun
I could change the product from 12.1 to 12.2 (or even Factory, although I didn't check if it was fixed), it wouldn't fix the bug :(
Just asking because some bug owner like to keep it in the version the bug originally was detected. For regression tests.
I had no time to work on it, timeout is being correctly handled by cryptsetup, but the issue is in the systemd own timeout which is the issue..
Any workaround so far? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c11
--- Comment #11 from Frederic Crozat
I had no time to work on it, timeout is being correctly handled by cryptsetup, but the issue is in the systemd own timeout which is the issue..
Any workaround so far?
Unfortunately, no, current code is already setting "TimeoutSec=0" in the generated .service which is supposed to ensure timeout is correctly handled but other unit is timeouting (the one for the device, IIRC) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c12
--- Comment #12 from endym ion
(In reply to comment #9)
I could change the product from 12.1 to 12.2 (or even Factory, although I didn't check if it was fixed), it wouldn't fix the bug :(
Just asking because some bug owner like to keep it in the version the bug originally was detected. For regression tests.
I had no time to work on it, timeout is being correctly handled by cryptsetup, but the issue is in the systemd own timeout which is the issue..
Any workaround so far?
Hi Axel, you will find a workaraound in the forum thread I mentioned at the end of the bug report. endym -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c13
--- Comment #13 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c14
--- Comment #14 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c15
--- Comment #15 from Maciej Pilichowski
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c16
--- Comment #16 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c17
--- Comment #17 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c18
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c19
--- Comment #19 from Axel Braun
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c20
--- Comment #20 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=749706
https://bugzilla.novell.com/show_bug.cgi?id=749706#c21
Dr. Werner Fink
no, as noted in my comment 18, it should be fixed in 13.1
Is it possible to apply the patch to systemd 195? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com