Bug#994056: cryptsetup: blkid check fails to take offset option into account

2021-10-08 Thread Thorsten Glaser
Guilhem Moulin dixit: >first to report it I suppose nobody uses large offset= values. Don't >think adding ‘Depends: bc’ is justified here :-P. Eh, bc’s supposed to be a base tool anyway… >Also in practice I was able to use offset=2⁵⁹ (buster-i386)tglase@tglase:~ $ echo '2^59' | bc 576460752303

Bug#994056: cryptsetup: blkid check fails to take offset option into account

2021-10-08 Thread Guilhem Moulin
On Fri, 08 Oct 2021 at 15:12:58 +, Thorsten Glaser wrote: >>, so I completed your patch with 2373709bb461a71a7af46e7e9c59355fce63e52e. > > -blkid="$(/sbin/blkid -o value -s TYPE -p ${offset:+-O "$offset"} -- "$dev")" > +blkid="$(/sbin/blkid -o value -s TYPE -p ${offset:+-O "$((offset*512))"} -

Bug#994056: cryptsetup: blkid check fails to take offset option into account

2021-10-08 Thread Thorsten Glaser
Hi Guilhem, >(And added unit tests for the use case.) thanks! I was more interested in getting my system working and did the fix on the installed system without looking at the source package at first. >Thanks for the patch! FWIW crypttab(5)'s ‘offset=’ passes the value to >`cryptsetup -o` which

Bug#994056: cryptsetup: blkid check fails to take offset option into account

2021-10-08 Thread Thorsten Glaser
Dixi quod… >I’m attaching a first cut at my favourite solution. It’s missing … this time with attachment… bye, //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf der OpenRheinRuhr, ganz begeistert (EN: “[…]uh

Bug#994056: cryptsetup: blkid check fails to take offset option into account

2021-09-10 Thread Thorsten Glaser
Package: cryptsetup Version: 2:2.3.5-1 Severity: important X-Debbugs-Cc: t...@mirbsd.de In order to use a cryptsetup swap with a very tiny protective ext2fs filesystem so we can use LABEL= as source device, I use offset= as shown in the Arch Linux wiki. However it fails in Debian: tglase@tglase-