Comment 8 for bug 563

Revision history for this message
hunger (hunger) wrote :

A simple diff will not do, as the cryptsetup init-file from 1.0.03-0ubuntu1 is split up into several files.

I still prefer my version for the following reasons:

* the official one requires /usr to be mounted which is not garanteed to be mounted at the time the script is run. (/usr/share/cryptdisks/checks is mentioned in /etc/default/cryptsetup, dunno whether it is actually used)

* It does not autodetect LUKS devices (trivial to implement using cryptsetup isLuks, which is even used to sanitycheck when the luks option is given!).

* It does not support forcing devices to be brought down when the script is run with the start option. I find this really annoying as this makes the following usecase hard to do:
   * Have a partition set up and mounted with the init-script asking for a password for that partition.
   * Mount other partitions using keys found on the first one.
   * unmount the key-partition, destructing the device to make sure the keys are "safe" again.

* Finally the "swap", "tmp" etc. parameters have a hardcoded behaviour. I do want ext3 on my /tmp for example and need to patch up the script to archive that. Why not provide a hook scripts instead? Way more flexible.

Is there any chance to get changes to the current scripts that fix those shortcommings accepted?