I say you need to use (manually) the commands to format a encrypted partition (and set the password): cryptsetup luksFormat <device> mkfs.ext2 ... Maybe is a good idea include this commands inside initramfs. The secret is use the command: cryptsetup isLuks <device> if the <device> is luks formated, return zero code. If not formated, return 234 code. The basically idea is: If is the first use of the system, isLuks return 234 and system show a prompt to set the password. If not, isLuks return zero and just show prompt to enter the password and mount the device.
Understand? Thanks. 2010/11/2 intrigeri <intrigeri+debian-l...@boum.org<intrigeri%2bdebian-l...@boum.org> > > hi, > > Marcos Barbosa wrote (26 Oct 2010 22:02:34 GMT) : > > I read about the creation (and documentation) of option > > persistent=cryptsetup. Great job! Thanks, i need this feature. But > > here is a question: I need pre-format partitionto work with > > cryptsetup or if partition is empty the system format, set the > > password, etc.? Is a idea to think... Thanks ;) > > I must admit I don't understand what your are meaning with "pre-format > the partition to work with cryptsetup". Do you really want to set the > encryption passphrase at image build time? > > Bye, > -- > intrigeri <intrig...@boum.org> > | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc > | OTR fingerprint @ > https://gaffer.ptitcanardnoir.org/intrigeri/otr-fingerprint.asc > | Who wants a world in which the guarantee that we shall not > | die of starvation would entail the risk of dying of boredom ? > > > -- > To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: http://lists.debian.org/8539rkgejl....@boum.org > > -- Marcos Henrique Esteves Barbosa marcosestevesbarb...@gmail.com