[Bug 716136] New: systemd: doesn't mount my encrypted /home
https://bugzilla.novell.com/show_bug.cgi?id=716136 https://bugzilla.novell.com/show_bug.cgi?id=716136#c0 Summary: systemd: doesn't mount my encrypted /home Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vuntz@suse.com QAContact: qa@suse.de Found By: --- Blocker: --- My encrypted /home doesn't get mounted with systemd. I do get the prompt, but nothing happens afterwards. Note that doing "systemctl restart cryptsetup@cr_sda3.service" doesn't help. This is my /etc/crypttab: cr_sda3 /dev/disk/by-id/ata-ST9160412AS_5VG1695C-part3 none none -- 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=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c1
--- Comment #1 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c2
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c3
--- Comment #3 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c4
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c5
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c6
--- Comment #6 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c7
--- Comment #7 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c8
--- Comment #8 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c9
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c10
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c11
--- Comment #11 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c12
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c13
--- Comment #13 from Christian Boltz
dup. Shouldn't be too hard IMHO - the following sed command in %post of cryptsetup (or another package) should work: (Warning: untested!) sed -i '/^\/dev/mapper/cr_/ s/,noauto,nofail/' etc/fstab
Argh, obviously untested :-/ sed -i '/^\/dev\/mapper\/cr_/ s/,noauto,/nofail/' etc/fstab Untested again, but at least the syntax should be correct now ;-) -- 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=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c14
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c15
--- Comment #15 from Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c16
--- Comment #16 from Christian Boltz
I'm unsure what package would fix this on upgrades anyway
The boot.crypto initscript and /etc/crypttab are both owned by cryptsetup, which is maintained by Ludwig. I'm sure he's a better assignee than the screening team for this bug. Ludwig, what do you think about fixing this bug with sed on /etc/fstab in %post of cryptsetup? See comment #13 -- 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=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c17
Karl Eichwalder
Karl: is comment 10 not enough? (with the change mentioned by Luwdig and Christian in comments 11 & 12)
Literal diffs are always a PITA ;) But otherwise, you are right. Here is the merged version that I'm going to add to the RN: <title>Mounting Encrypted Partitions with systemd</title> <para> If encrypted partitions are not automatically mounted with systemd, the 'noauto' flag in <filename>/etc/fstab</filename> for these partitions could be the cause. Replacing this flag with 'nofail' will fix it. For instance, change the following line:</para> <screen>/dev/mapper/cr_sda3 /home ext4 acl,user_xattr,noauto 0 0</screen> <para> to </para> <screen>/dev/mapper/cr_sda3 /home ext4 acl,user_xattr 0 0</screen> -- 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=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c18
--- Comment #18 from Karl Eichwalder
(In reply to comment #15)
I'm unsure what package would fix this on upgrades anyway
The boot.crypto initscript and /etc/crypttab are both owned by cryptsetup, which is maintained by Ludwig. I'm sure he's a better assignee than the screening team for this bug.
Ludwig, what do you think about fixing this bug with sed on /etc/fstab in %post of cryptsetup? See comment #13
I cloned the bug: bnc#724113 -- 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=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c19
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c20
Christian Boltz
Literal diffs are always a PITA ;)
Yes, seems so ;-)
<screen>/dev/mapper/cr_sda3 /home ext4 acl,user_xattr,noauto 0 0</screen> <para> to </para> <screen>/dev/mapper/cr_sda3 /home ext4 acl,user_xattr 0 0</screen>
The last line should contain acl,user_xattr,nofail (the ",nofail" is missing). -- 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=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c21
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c22
--- Comment #22 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c23
--- Comment #23 from Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=716136
https://bugzilla.novell.com/show_bug.cgi?id=716136#c24
Karl Eichwalder
participants (1)
-
bugzilla_noreply@novell.com