partitioner crashes with random encryption key.

Bug #154502 reported by Josef Wolf
6
Affects Status Importance Assigned to Milestone
debian-installer (Ubuntu)
New
Undecided
Unassigned
partman-crypto (Ubuntu)
New
Undecided
Unassigned
partman-md (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: partman-md

The following is perfectly reproducable when installing gutsy.

In the partitioner, I select a partition for "physical volume for encryption" and choose "random key" as encryption key (since this is aimed to be a swap partition). Then I go "configure encrypted volumes". After confirmation, the partitioner crashes (screen gets scrambled). After activating the shell on the second console, I can see that /lib/partman/init.d/35dump hangs.

Revision history for this message
Josef Wolf (jw-raven) wrote :

Here is /var/log/partman (The form to create new bugs did not offer an option to add attachments).

I will provide /var/log/syslog in the next comment, since this form don't let me aadd two attachments.

Revision history for this message
Josef Wolf (jw-raven) wrote :
Revision history for this message
Josef Wolf (jw-raven) wrote :

The problem still exists in 8.04rc.

Please, can somebody give me some hints how to track down this problem?

Revision history for this message
Sebastian Hasait (shasait) wrote :

I tried the same thing and it returns to the main-menu. In the ALT+F4-Log: debian-install (PID XXXX) exited. Scheduling it for restart.
And when I restart the partitioner again it hangs at 31md-devices; but if I do not use any md-devices it hangs on 35dump, too.

I will try now without encrypted swap and only encrypt home.

Revision history for this message
Josef Wolf (jw-raven) wrote :

Thanks for conforming the problem, Concentus.

Can you please explain what you mean with "not use any md-devices"? AFAIK, crypted partitions always use md-devices.

BTW: AFAICS, the problem is related to the type of the encryption key and not to the partition type. When I use swap with a passphrase instead of a random key, the install works fine. So, as a workaround, I install following script in /etc/rcS.d:

[code]
#! /bin/sh

cd /etc

if [ -e crypttab ] ; then
    sed -e 's! none luks,swap! /dev/random swap!' <crypttab >crypttab.new

    if diff crypttab crypttab.new; then true; else
        ln crypttab crypttab.orig
        mv crypttab.new crypttab
        update-initramfs -u ALL
    fi
fi

rm $0
sync
[/code]

With this, I have to choose/type a key for the swap when installing, but when the install is finished, it is switched to a random key.

Revision history for this message
hvoss (hvoss) wrote :

Same problem here with kubuntu-kde4-8.04-alternate-i386.iso (in VirtualBox 1.5.6 and in "real" hardware (Dell Latitude D610)). I can't create a random-key-encrypted swap partition during installation.

Revision history for this message
hvoss (hvoss) wrote :

Same problem here with kubuntu-kde4-8.04-alternate-i386.iso (in VirtualBox 1.5.6 and in "real" hardware (Dell Latitude D610)). I can't create a random-key-encrypted swap partition during installation, the partitioner reproducible stops at 47 %

Changed in partman-md:
assignee: nobody → hvoss
hvoss (hvoss)
Changed in partman-md:
assignee: hvoss → nobody
Revision history for this message
Patje (patrick-coeman) wrote :

Here the same problem with the alternate 8.04 64bit version

After starting the encryption we see the progress bar going to 42% and thats it...

/lib/partman/init.d/31md-devices is the last running proces in the list. Killing the PID corrupt the install screen.

Encrypting with a password phrase works fine.

Revision history for this message
Pau Oliva (poliva) wrote :

Same probelm here using ubuntu 8.04 alternate CD x86 32 bits.
Choosed random key for swap and partitioner hang at 47%.

Revision history for this message
Till Ulen (tillulen) wrote :

I think this is not related to partman-md. It's more likely to be related to partman-crypto, partman-crypto-dm and debian-installer. I'll leave the bug as New in partman-md because I'm not sure what partman-md really does.

Revision history for this message
Jim Wyatt (jimwyatt) wrote :

Bump

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.