Bug 724113 - systemd: doesn't mount my encrypted /home
Summary: systemd: doesn't mount my encrypted /home
Status: RESOLVED FIXED
: 725622 (view as bug list)
Alias: None
Product: openSUSE 12.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Factory
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ludwig Nussel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 07:34 UTC by Karl Eichwalder
Modified: 2011-11-02 12:09 UTC (History)
6 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Eichwalder 2011-10-14 07:34:24 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
Comment 1 Ludwig Nussel 2011-10-26 12:47:40 UTC
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.
Comment 2 Ludwig Nussel 2011-10-26 14:56:04 UTC
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?
Comment 3 Christian Boltz 2011-10-26 15:57:55 UTC
zypper dup is too good ;-) -I didn't update using yast since several versions.
Comment 4 Bernhard Wiedemann 2011-10-27 16:00:17 UTC
This is an autogenerated message for OBS integration:
This bug (724113) was mentioned in
https://build.opensuse.org/request/show/89562 Factory / cryptsetup
Comment 5 Ludwig Nussel 2011-10-28 11:35:49 UTC
I've added code to adjust fstab. please test thoroughly.
Comment 6 Ludwig Nussel 2011-11-02 12:09:41 UTC
*** Bug 725622 has been marked as a duplicate of this bug. ***