[systemd-devel] [PATCH] cryptsetup: Implement offset and skip options

Martin Pitt martin.pitt at ubuntu.com
Thu Apr 16 04:55:01 PDT 2015


Hello all,

we get bug reports that the switch to systemd destroyed the underlying
partitions of encrypted swap partitions which were using "offset=". As
this is silently ignored right now, the cryptsetup plain device always
starts at the beginning of the device, deleting everything which was
before the intended offset. In particular, this removed any UUID or
other signature that crypttab referred to to identify the underlying
device.

This simple patch adds offset=. While I was at it I also added skip=.
I attached my script for testing this to the fd.o bug.

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cryptsetup-Implement-offset-and-skip-options.patch
Type: text/x-diff
Size: 2381 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150416/743e53a0/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150416/743e53a0/attachment.sig>


More information about the systemd-devel mailing list