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

Bug#793643: marked as done (partman-crypto: Failure when doing a non-preseeded encrypted install)



Your message dated Tue, 25 Aug 2015 23:37:14 +0000
with message-id <E1ZUNmE-0002El-V7@franck.debian.org>
and subject line Bug#793643: fixed in partman-crypto 86
has caused the Debian Bug report #793643,
regarding partman-crypto: Failure when doing a non-preseeded encrypted install
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
793643: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793643
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: partman-crypto
Version: 84
Severity: important
Tags: patch

Hi,

commit 3d537db63a0d9101211dbe381e391232d1933949 introduced a bug which causes a fully encrypted install to fail when no options are set using debconf. The following patch should fix this.


Adrian


*** partman-crypto.patch
diff --git a/lib/crypto-base.sh b/lib/crypto-base.sh
index e4316d3..22f6b0f 100644
--- a/lib/crypto-base.sh
+++ b/lib/crypto-base.sh
@@ -575,16 +575,16 @@ crypto_set_defaults () {
 
 	case $type in
 	    dm-crypt)
-		db_get partman-crypto/cipher || RET=aes
-		echo $RET > $part/cipher
-		db_get partman-crypto/keysize || RET=256
-		echo $RET > $part/keysize
-		db_get partman-crypto/ivalgorithm || RET=xts-plain64
-		echo $RET > $part/ivalgorithm
-		db_get partman-crypto/keytype || RET=passphrase
-		echo $RET > $part/keytype
-		db_get partman-crypto/keyhash || RET=sha256
-		echo $RET > $part/keyhash
+		db_get partman-crypto/cipher
+		echo ${RET:-aes} > $part/cipher
+		db_get partman-crypto/keysize
+		echo ${RET:-256} > $part/keysize
+		db_get partman-crypto/ivalgorithm
+		echo ${RET:-xts-plain64} > $part/ivalgorithm
+		db_get partman-crypto/keytype
+		echo ${RET:-passphrase} > $part/keytype
+		db_get partman-crypto/keyhash
+		echo ${RET:-sha256} > $part/keyhash
 		;;
 	esac
 	return 0

--- End Message ---
--- Begin Message ---
Source: partman-crypto
Source-Version: 86

We believe that the bug you reported is fixed in the latest version of
partman-crypto, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 793643@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cyril Brulebois <kibi@debian.org> (supplier of updated partman-crypto package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 26 Aug 2015 01:22:43 +0200
Source: partman-crypto
Binary: partman-crypto partman-crypto-dm
Architecture: source
Version: 86
Distribution: unstable
Urgency: high
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Cyril Brulebois <kibi@debian.org>
Description:
 partman-crypto - Add to partman support for block device encryption (udeb)
 partman-crypto-dm - Add to partman support for dm-crypt encryption (udeb)
Closes: 793643
Changes:
 partman-crypto (86) unstable; urgency=high
 .
   * Fix non-preseeded Encrypted LVM installs which were failing due to
     faulty logic in preseeding handling. Many thanks to Adrian Kretz for
     the report and the patch! (Closes: #793643)
Checksums-Sha1:
 a9299df6ee11493765277eee4fc6b0e06d4b1bd7 1787 partman-crypto_86.dsc
 be65f0b70abed20b251822a1734abfa1a122f03b 263480 partman-crypto_86.tar.xz
Checksums-Sha256:
 9a4b688142b921a66e182ae71e94d9ea955a57ae1d39f6dc165466eac204e89a 1787 partman-crypto_86.dsc
 4d0ce4dd1bc6b6fe56d32239b871de8a8757ae4c0297ef3d972d2804ef1bf603 263480 partman-crypto_86.tar.xz
Files:
 79c76e03b2207e609d5f0783655cc8a1 1787 debian-installer optional partman-crypto_86.dsc
 6f721202adbe0617a31d7197cb3312e5 263480 debian-installer optional partman-crypto_86.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJV3PksAAoJEP+RSvDCs1Ug9kEQAMLaVb6Kzs0CkbAl7/Kioo7M
oQy7+1oNvix+CEX0RGBepCdVxJCXAjUcrszoBWgdfxHx2IZmf3AT6loEFUwLaHEi
dKBFWzUnxsdhuQO8tlCWPFRze9rQea8nTZ6e+fdqiFHGxXqV3xzu9vyCxA03rJG9
jpwmAk3RjnG7nU9a+zuityOuBtR6g78/Kqo5ClpSvuJUnIq9GYQyouNj6otwGVEw
TOGcGH0l+eGOm5F7HeTlC0+pZDkFN/JXMCTI366P0g7hfyCPphpf4ZE0AybOYZQ4
dgRofXW2XWFtaDaz1YXv5b7gLxAsGdm5uSuiza2KUtiujW1iqsUzax7HBt133zSA
bfnE4uuIEqNfzicvNPLowyd0FzO4iDw5ke8IfWVirTgGsjjQaPyTHOlal5hTI2Tr
eVm/AiOe6NfG1K36OOtEO8VKHhuuM5afEeANW9K5Rmq5H13Rjt99nm7VytbaqXHt
JrIpKxApWXwALt83GqyI3xVFvcjTZAvtO4VvRirmn+wPoMNe+7TtQDt/tAachtZF
CTBdtYPGnEJ+FjdniMWB2eVbwelV38hEGgTrkHIQp653TZRmVbNiJbWMOGwKeek/
YYizTQXQWl9hac/z4xS1jMY7WHb/7/LVwXAqZcOM+VNZa+dDLOCWVXLkvpwhjmcD
jAZ76Nij1vShzPqjMjQL
=aClj
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: