[Bug 725622] New: systemd breaks startup (crypted home?)
https://bugzilla.novell.com/show_bug.cgi?id=725622 https://bugzilla.novell.com/show_bug.cgi?id=725622#c0 Summary: systemd breaks startup (crypted home?) Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- last "zypper dup" of my 12.1-beta notebook installed systemd-sysvinit-37-2.1.x86_64 and sysvinit-2.88+-65.1.x86_64 (before it was running fine with old style sysvinit-2.88-37.47.1). now the system startup hangs, maybe due to my crypted home ?! /home passphrase gets requested, but then after timeout I end in "emergency mode" and /home is not mounted. exiting "emergency mode" asks again for /home passphrase, and I end in "emergency mode" again -- looks like ground hog day :-((( this is the console output: unused Waiting for udev to settle... Scanning for LVM volume groups... Reading all physical volumes. This may take a while... Found volume group "system" using metadata type lvm2 Activating LVM volume groups... 7 logical volume(s) in volume group "system" now active done [ 1791.563301] systemd[1]: Job tmpfs.device/start timed out. [ 1791.598992] systemd[1]: Job remote-fs.target/start failed with result 'dependency'. [ 1791.634034] systemd[1]: Job local-fs.target/start failed with result 'dependency'. [ 1791.669280] systemd[1]: Triggering OnFailure= dependencies of local-fs.target. [ 1791.704659] systemd[1]: Job var-run-nscd.mount/start failed with result 'dependency'. [ 1791.740064] systemd[1]: Job fsck@tmpfs.service/start failed with result 'dependency'. [ 1791.775067] systemd[1]: Job tmpfs.device/start failed with result 'timeout'. Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode. Give root password for login: [ 1792.062344] dhcpcd[5680]: wlan0: exiting Can't deactivate volume group "system" with 5 open logical volume(s) skipped Not shutting down MD RAID - reboot/halt scripts do this. missing [ 1792.323473] systemd[1]: md.service: control process exited, code=exited status=3 [ 1792.364160] systemd[1]: Unit md.service entered failed state. I'm totally new to systemd -- now to I debug/test/workaround/... (or just get rid of systemd and use sysvinit again) ?!? -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c1
--- Comment #1 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c2
--- Comment #2 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c3
--- Comment #3 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c4
--- Comment #4 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c5
--- Comment #5 from Harald Koenig
could you test package available at home:fcrozat:systemd / systemd ?
I think it will fix your issue.
NAK: did not help. RPMs installed now: systemd-sysvinit-37-268.2.x86_64 systemd-37-268.2.x86_64 systemd-32bit-37-268.2.x86_64 systemd-presets-branding-openSUSE-0.1.0-5.1.noarch /home still not mounted after root login. attached "screen.dump-6" shows console messages after root login -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c6
--- Comment #6 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c7
--- Comment #7 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c8
--- Comment #8 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c9
--- Comment #9 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c10
--- Comment #10 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c11
--- Comment #11 from Harald Koenig
how is your /dev/system/home volume created ?
is it RAID, lvm, both, etc.. ?
this is a Lenovo T61p notebook with a single harddisk (sda). sda4 and sda8 are 2 PVs for the single VG "system", home is a LV: LV Name /dev/system/home VG Name system LV UUID ... LV Write Access read/write LV Status available # open 1 LV Size 100.00 GiB Current LE 25600 Segments 6 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c12
--- Comment #12 from Harald Koenig
try attaching hwinfo --block output, when everything is working (ie booting with sysvinit)
see end of comment #10: access to home and manual start/mount in emerency shell is no problem. how do I boot 12.1 with sysvinit ? or shall I boot 11.4, or will INIT=/sbin/sysvinit work as expected ?! the attached hwinfo--block.output is from 12.1 emergency shell after manual mounting of /home (so everything is "working" -- until I try to leave that shell or reboot;) -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c13
--- Comment #13 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c14
--- Comment #14 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c15
--- Comment #15 from Harald Koenig
it looks like you are dup of bnc#661401
to reboot under sysvinit : -if you have graphical boot, press f5 and choose systemv - or add "init=/sbin/sysvinit" to kernel boot command
if you aren't using iscsi at all, try uninstalling open-iscsi package to see if it fixes the issue for you.
I already did this (see middle of comment #10): and tried rpm -e open-iscsi but it did not really help I'll reboot... -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c16
--- Comment #16 from Harald Koenig
it looks like you are dup of bnc#661401
to reboot under sysvinit : -if you have graphical boot, press f5 and choose systemv
hmm, I only see F1 (help) F2 (language) and F4 (keyboard). pressing F5 does nothing... what am I missing?? this is an update from 11.4 to 12.1-factory some time ago (after beta-1). any special tweeks needed to activate the F5 setup function ?
- or add "init=/sbin/sysvinit" to kernel boot command
ACK, boots with sysvinit, and lots of fscks later: home shows up as before! (no bug surprise, is it ?) -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c17
--- Comment #17 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c18
--- Comment #18 from Harald Koenig
please test package from home:fcrozat:systemd / systemd
please read my comment #5: I've already tested and reported that -- it did not help! I can't see a new version of systemd there right now ?!? [ ] systemd-37-268.2.x86_64.rpm 24-Oct-2011 08:44 807K Details -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c19
--- Comment #19 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c20
--- Comment #20 from Harald Koenig
yes, but now, you have uninstalled open-iscsi which was breaking dependencies.
only later. first I only updated to your systemd and rebooted (#5). result: not working (/home not mounted, emergency shell). only then U removed open-iscsi (#10): still not working (but no cycle errors anymore). but still no /home, systemd does not startup my 12.1 system. right now I boot with sysvinit to be operational.... to be clear: your systemd does not work for me, neither with nor without open-iscsi! what else shall I test, which data do you need ? -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c21
--- Comment #21 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c22
--- Comment #22 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c23
--- Comment #23 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c24
--- Comment #24 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c25
--- Comment #25 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c26
--- Comment #26 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c27
--- Comment #27 from Harald Koenig
one thing you can also try :
- commenting the tmpfs line in your fstab (just to be sure)
ACK, you're right! mount point /var/run/nscd did not exist anymore. and after creating and rebooting, it's vanished again:-( so: I've comment that fstab line and -- drum roll -- the system came up includung X11 and network! BUT: /home still is not mounted. I noticed that (at least now) /dev/mapper/cr_home already exists after boot, so only the "mount /home" does not work (or happen at wrong time) yet. running "mount /home" manually works fine as expected...
-when running under systemd: cp /run/systemd/generator/cryptsetup*.service /etc/systemd/system
then, for cryptsetup\@*.service files (not sure how they are named on your system) in /etc/systemd/system, add After=lvm.service
in the section [Unit]
and reboot (under systemd)
so I tried that one -- but no change. /dev/mapper/cr_home exists but does not get mounted to /home yet... I'll attach another dmesg output with debug logs... -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c28
--- Comment #28 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c29
--- Comment #29 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c30
--- Comment #30 from Harald Koenig
until you have the fix for tmpfs, try replacing the last parameter for tmpfs line in /etc/fstab from 2 to 0 and test again.
I've commented out that line, as it's not needed anymore (as /var/run is a tmpfs now anyway..., see comment #27) FYI: I've commented out the SWAP line too, as that swap partition does not exist right now. but the missing swap only caused some timeout at boot, it did not cause running into emerceny mode (and emergency loops). so the only remaining real problem in this thread for me right now is the fact, that the /home does not get mounted after /dev/mapper/cr_home shows up (got unlocked by cryptsetup)... -- 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=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c31
--- Comment #31 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c32
--- Comment #32 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c33
--- Comment #33 from Harald Koenig
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c34
--- Comment #34 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c35
--- Comment #35 from Harald Koenig
found it : you have "noauto" specified for /home in your fstab : so systemd doesn't try to mount it at startup ...
interesting!! that's from yast2 when creating that setup many releases back
(likely opensuse 11.1).
so I removed the "noauto" and did reboot -- but first again with sysvinit ;-)
and surprise: without "noauto" runs into some timeout
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c36
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725622
https://bugzilla.novell.com/show_bug.cgi?id=725622#c37
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com