[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#530784: partman-crypto: preseeding of the dm-crypt passphrase failed



Subject: partman-crypto: preseeding of the dm-crypt passphrase failed
Package: partman-crypto
Version: 36
Severity: normal



-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.26-1-686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
(the test with english language also failed)

Hello,
i tried to install about 20 laptops full preseeded with crypted
root and swap (and a normal /boot). The installation work but
without accepting my preseeded partman-crypto/passphrase (and
partman-crypto/passphrase-again).
I use 'd-i preseeded partman-crypto/passphrase password <CLEAR
TEST PASSWORD>' and the same with 'partman-crypto/passphrase-again'.
I see the Values in the 'passwords.dat' when the system is
processing the preseed file but it seems that the 'blockdev-keygen'
script didn't get it.
Is it not possible to preseed this value?
Or how is it possible debug partman-crypto precessing?

The exact image i used for the installation:
http://ftp.de.debian.org/debian-cd/5.0.1/i386/iso-cd/debian-501-i386-netinst.iso
# (14-Apr-2009 00:28 - 154M)

The installation without preseeding partman works correct.

I start the installation with a test preseed file an priority=medium.
My test preseed file (all other values are set intercativ):

> ####################################################################
> # Disk Partitioning/Boot loader
> ####################################################################
> 
> # dm-crypt passphrase
> d-i partman-crypto/passphrase       password  A_very_log_and_secret_passphrase!
> d-i partman-crypto/passphrase-again password  A_very_log_and_secret_passphrase!

When starting the menu entry "Partition disks", until setting
the partition for encryption the .../passwords.dat contains:

> ...
> Name: partman-crypto/passphrase
> Template: partman-crypto/passphrase
> Value: A_very_log_and_secret_passphrase!
> Owners: d-i, partman-crypto
> Flags: seen
> Variables:
>  ID = partman-crypto/passphrase
> 
> Name: partman-crypto/passphrase-again
> Template: partman-crypto/passphrase-again
> Value: A_very_log_and_secret_passphrase!
> Owners: d-i, partman-crypto
> Flags: seen
> Variables:
>  ID = partman-crypto/passphrase-again
> ...

But before preparing the partition the installation asks for the
passphrase.
The .../passwords.dat contains after the partitioning:

> ...
> Name: partman-crypto/passphrase
> Template: partman-crypto/passphrase
> Value:
> Owners: d-i, partman-crypto
> Variables:
>  ID = partman-crypto/passphrase
>  DEVICE = SCSI1 (0,0,0), partition #2 (sda)
> 
> Name: partman-crypto/passphrase-again
> Template: partman-crypto/passphrase-again
> Value:
> Owners: d-i, partman-crypto
> Variables:
>  ID = partman-crypto/passphrase-again
> ...

I inserted a 'set -x' in '/bin/blockdev-keygen' and
'/lib/partman/lib/crypto-base.sh' and append the saved syslog (.gz)
and the lsb-release file to this report.

Many thanks for any help

Gabriel

Attachment: syslog.gz
Description: GNU Zip compressed data

DISTRIB_ID=Debian
DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
DISTRIB_RELEASE="5.0 (lenny) - installer build 20090123lenny1"
X_INSTALLATION_MEDIUM=cdrom

Reply to: