crypsetup hook ignores resume partition due to wrong regular expression

Bug #114863 reported by Andres Freund
6
Affects Status Importance Assigned to Milestone
cryptsetup (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cryptsetup

The line sed -rn 's/^RESUME[[:space:]]+=[[:space:]]+// p' /etc/initramfs-tools/conf.d/resume doesnt recognize my suspend device, as there are no spaces around the '='.
After changing the '+' to '*' or '{0,}' resuming from encrypted swap works again.

If wanted i can produce a patch, but I guess, its not really needed for such trivial matters...

Thanks,

Andres

Revision history for this message
Andres Freund (andres-anarazel) wrote :

Oh, sorry i forgot:
Version: 2:1.0.4+svn29-1ubuntu1 (Gutsy)

The problem is there for some more time, I just forgot to report...

Andres

Revision history for this message
Kjell Braden (afflux) wrote :

I can confirm this on an up-to-date gutsy (cryptsetup 2:1.0.5-1ubuntu3).

Changed in cryptsetup:
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the source of package version 1.0.5-2ubuntu2 for Gutsy I am unable to find this particular line. I did find:

debian/initramfs/cryptroot-hook: device=$(sed -rn 's/^RESUME[[:space:]]*=[[:space:]]*// p' /etc/initramfs-tools/conf.d/resume)

However, based off the initial description it seems to be fixed. This is also the case with the latest bzr tree.

Changed in cryptsetup:
status: Confirmed → Incomplete
Revision history for this message
Kjell Braden (afflux) wrote :

Err, right. I got confused by another regular expression.

Changed in cryptsetup:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.