Improved version which uses blkid -p if available (not yet on hardy/jaunty, but on karmic).
I installed hardy's cryptsetup (2:1.0.5-2ubuntu12) on karmic, and as expected the script fails now:
$ sudo ./test-luks-blkid.sh
*** test pair: luks/ext2 *** ext2 luks /dev/ram0: ambivalent result (probably more filesystems on the device)
So the goal for Karmic is that the test succeeds under those conditions.
Improved version which uses blkid -p if available (not yet on hardy/jaunty, but on karmic).
I installed hardy's cryptsetup (2:1.0.5-2ubuntu12) on karmic, and as expected the script fails now:
$ sudo ./test- luks-blkid. sh
*** test pair: luks/ext2 ***
ext2 luks /dev/ram0: ambivalent result (probably more filesystems on the device)
So the goal for Karmic is that the test succeeds under those conditions.