[Pkg-cryptsetup-devel] Bug#487256: cryptsetup: add dep-scripts option to crypttab

Christoph Anton Mitterer calestyo at scientia.net
Fri Jun 20 20:32:09 UTC 2008


Another idea would be to say, that it's generally the duty of the system
itself (e.g. init.d scripts) or other initrd-boot-skripts to assure,
that the file is accessible.

That way one could add boot-scripts like:

mount-usb: that contains a:
#!/bin/sh
PREREQ=""
prereqs()
{
	echo "$PREREQ"
}

case $1 in
	prereqs)
		prereqs
		exit 0
		;;
	esac
...

and a umount-usb: that contains a
#!/bin/sh
PREREQ="cryptroot"    <-----------------
prereqs()
{
	echo "$PREREQ"
}

case $1 in
	prereqs)
		prereqs
		exit 0
		;;
	esac...


But then one would have to change cryptroot to prereq mount-usb.
Is that possible, better?

What do you think?


Chris.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5108 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20080620/0b9cf506/attachment.bin 


More information about the Pkg-cryptsetup-devel mailing list