Bugzilla – Bug 724113
systemd: doesn't mount my encrypted /home
Last modified: 2011-11-02 12:09:41 UTC
+++ This bug was initially created as a clone of Bug #716136 +++ Christian Boltz 2011-10-09 19:33:46 CEST If the example is changed to use "nofail", then the sentence Simply remove this flag. should be changed to Simply replace the "noauto" flag with "nofail". That said: I'd really welcome if this was fixed automatically by YaST or zypper 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 [reply] [-] Private Comment 13 Christian Boltz 2011-10-10 12:32:25 CEST (In reply to comment #12) > 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 ;-) Christian Boltz 2011-10-13 21:25:58 CEST (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
There's actually code in yast that does this automatically on update (provided that you actually upgrade via yast). I'm investigating whether it still works.
the code is only called when updating from <= 11.2 so I suppose you did not update via yast at some point so keep carrying around the old fstab?
zypper dup is too good ;-) -I didn't update using yast since several versions.
This is an autogenerated message for OBS integration: This bug (724113) was mentioned in https://build.opensuse.org/request/show/89562 Factory / cryptsetup
I've added code to adjust fstab. please test thoroughly.
*** Bug 725622 has been marked as a duplicate of this bug. ***