[Pkg-cryptsetup-devel] losetup and dmsetup in cryptdisks

Jonas Meurer jonas at freesources.org
Wed Feb 8 18:23:49 UTC 2006


i've just re-read the whole cryptdisks script, and i wonder what the
'set up loopback devices' part is for.

it simply runs 'losetup /dev/loop$LOOP_ID $src' for every source device,
where $LOOP_ID is the first loop device with size 0, and $src is the
source device. after doing that, the loop device is used as source

i simply don't know why this is done. is there a good reason, or not?
does it keep compability, or does it have other advantages over simply
using the source device directly?

the same is about the 'dmsetup mknodes' at the beginning of the script.
what does this do? unfortunately the mknodes command is not documented
in the dmsetup manpage. is it important, do we need it, etc.?

and last but not least, i still wonder if we need the 'hack' script in
the debian subdir. i've never seen it in action, and i cannot imagine
that it has any other functionality than being a test script for
whatever wesley intended to develop.

last but not least, i've updated and renamed checksystem_doc, and i
intend to start implementing the proposed checksystem soon. but i'dd
like to do some general script cleanup before that.


More information about the Pkg-cryptsetup-devel mailing list