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

Bug#414309: cannot configure encrypted volume if stray swap exists



Hi,

> On Sat, Mar 10, 2007 at 03:03:20PM -0500, Stephen Gildea wrote:
> > In the "Partition disks" step, using the "Manual" partitioning method,
> > I cannot configure encrypted volumes.
> > 
> > I create a partition, for use as a physical volume for encryption.
> > When I try to "Configure encrypted volumes", I get the error screen
> > "Unsafe swap space detected" and cannot proceed.
> > 

I had the same issue today, while trying to install testing.  But my case
is slightly more confusing since I did *not* have any swap partition shown
in /proc/swaps (I restarted the install from scratch and checked in the
alt+F2 console before and after launching the partition manager).

As mentionned in bug #396138 (merged with this one), the only way has been
to set my swap partition to "Use as: Do not use" in the partitioner.
Automatic partitionning yielded the same result, and my disk was a new,
unpartitionned SSD.

I do not understand what is going on.  I already used the automatic
(and even manual) partman-crypt in the past and never faced such an issue.

> > It also works to, in the partitioner, edit the swap partition on the
> > other disk and set its "Use as" field to "do not use".  It took me a
> > while to figure this out, and I feel this step should not be
> > necessary.
> 
> I don't think we can skip this step if we still want to
> automatically configure existing swap partitions on the system,
> but I agree that it should be easier to handle.

I'm afraid I do not understand: I have installed several Debian systems in
the past featuring an encrypted swap partition.  The fact that it
(sometimes) does not work looks like a random bug, not an absolute
impossibility.

> If the above should turn out to be impossible or too much work,
> I'll try to improve the error template to mention that one can set
> the "Use as" field rather than switch to a different VT and use 
> swapoff to deconfigure it manually. (This is post-etch as well)

Then again, swapoff did not solve the issue in my case.  Somehow, the
installer seems to think that, because I want to configure a swap
partition, a swap partition is already setup and might leak my passphrase
(which is not the case, and anyway this is supposed to be an encrypted swap
so WTF?).

Best regards,
-- 
Gabriel Kerneis



Reply to: