Bug#612802: debian-installer: crypted partition assistant should all parameters (FS, mount point) of the partition encrypted

February 10th, 2011 - 03:10 pm ET by Tuxicoman | Report spam
Package: debian-installer
Version: squeeze 6.0
Severity: normal

I wanted to crypt my /home partition at installation.

During the installation process, partition step :
I have a empty disk.
I first choose to partition automatically the disk (/ in ext3, swap and /home
in ext3 created)
Then I use the crypt partitions assistant (The langage used during installation
was french, i don't know what is the english name of the menu item)
I choose to crypt swap and the ext3 partition which mount point is /home.
I configure the swap partition to be encrypted. Ok.
In the screen where I configure the ext3 partition to be encrypted it shows :
"mount point : /home".

Then, after processing, my crypted volumes are :
swap assigned to swap,
ext3 crypted volume : no mount point.

I guess, the ext3 crypted volume should have keeped the /home mount point and
it's a bug.
The user then has to assing manually this partition to /home otherwise debian
installer will warn this partition will not be used.

I suggest the cryt partition assitant remembers all the partitions settings or
none of them when creating a crypted partition from an existing one.



Debian Release: 6.0
APT prefers squeeze-updates
APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Tuxicoman
February 11th, 2011 - 06:10 am ET | Report spam

So why the crypted partition assistant choose ext3 filesystem for
logical volume?

I would prefer it choose no filesytem, it will be less confuse that I
have to configure logical volumes.

The LVM assistant is much rational on this point. 1. create logical
volumes 2. configure them out of the LVM assistant

The "Assisté - utiliser tout un disque avec LVM chiffré" option didn't
fit my need as for a laptop, only crypting /home and swap was necessary
for me.


Le vendredi 11 février 2011 à  07:20 +0100, Christian PERRIER a écrit :

Quoting Tuxicoman ():
> Package: debian-installer
> Version: squeeze 6.0
> Severity: normal
>
> I wanted to crypt my /home partition at installation.
>
> During the installation process, partition step :
> I have a empty disk.
> I first choose to partition automatically the disk (/ in ext3, swap and /home
> in ext3 created)
> Then I use the crypt partitions assistant (The langage used during installation
> was french, i don't know what is the english name of the menu item)
> I choose to crypt swap and the ext3 partition which mount point is /home.
> I configure the swap partition to be encrypted. Ok.
> In the screen where I configure the ext3 partition to be encrypted it shows :
> "mount point : /home".
>
> Then, after processing, my crypted volumes are :
> swap assigned to swap,
> ext3 crypted volume : no mount point.
>
> I guess, the ext3 crypted volume should have keeped the /home mount point and
> it's a bug.
> The user then has to assing manually this partition to /home otherwise debian
> installer will warn this partition will not be used.


Though it may seem logical to try, what you're trying to do is, imho,
nearly not possible without deep invasive changes.

You're indeed doing two partitioning steps. The first creates the
partitions and assigns mount points.but the latteer uses these
partitions to create volumes where *logical* volumes will be created.

You want the logical volumes to keep the set mount point for the
volume containers. But, what if two logical volumes are created,
instead of only one, in each partition?

So, yes, at some point, the partitioner "forgets" that you assigned
/home to /dev/sda6 (for instance)and you need to assign /home to
sda6_crypt once encrypted volumes are created.

I see no way to avoid that.

Encrypted volumes is a complicated thing, indeed. This is why we have
the "Assisté - utiliser tout un disque avec LVM chiffré" option, that
does everything automagically.







<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
So why the crypted partition assistant choose ext3 filesystem for logical volume?<BR>
<BR>
I would prefer it choose no filesytem, it will be less confuse that I have to configure logical volumes.<BR>
<BR>
The LVM assistant is much rational on this point. 1. create logical volumes 2. configure them out of the LVM assistant<BR>
<BR>
The &quot;Assist&#233; - utiliser tout un disque avec LVM chiffr&#233;&quot; option didn't fit my need as for a laptop, only crypting /home and swap was necessary for me.<BR>
<BR>
<BR>
Le vendredi 11 f&#233;vrier 2011 &#224; 07:20 +0100, Christian PERRIER a &#233;crit :
<BLOCKQUOTE TYPE=CITE>
<PRE>
Quoting Tuxicoman (<A HREF="mailto:"></A>):
&gt; Package: debian-installer
&gt; Version: squeeze 6.0
&gt; Severity: normal
&gt;
&gt; I wanted to crypt my /home partition at installation.
&gt;
&gt; During the installation process, partition step :
&gt; I have a empty disk.
&gt; I first choose to partition automatically the disk (/ in ext3, swap and /home
&gt; in ext3 created)
&gt; Then I use the crypt partitions assistant (The langage used during installation
&gt; was french, i don't know what is the english name of the menu item)
&gt; I choose to crypt swap and the ext3 partition which mount point is /home.
&gt; I configure the swap partition to be encrypted. Ok.
&gt; In the screen where I configure the ext3 partition to be encrypted it shows :
&gt; &quot;mount point : /home&quot;.
&gt;
&gt; Then, after processing, my crypted volumes are :
&gt; swap assigned to swap,
&gt; ext3 crypted volume : no mount point.
&gt;
&gt; I guess, the ext3 crypted volume should have keeped the /home mount point and
&gt; it's a bug.
&gt; The user then has to assing manually this partition to /home otherwise debian
&gt; installer will warn this partition will not be used.


Though it may seem logical to try, what you're trying to do is, imho,
nearly not possible without deep invasive changes.

You're indeed doing two partitioning steps. The first creates the
partitions and assigns mount points.but the latteer uses these
partitions to create volumes where *logical* volumes will be created.

You want the logical volumes to keep the set mount point for the
volume containers. But, what if two logical volumes are created,
instead of only one, in each partition?

So, yes, at some point, the partitioner &quot;forgets&quot; that you assigned
/home to /dev/sda6 (for instance)and you need to assign /home to
sda6_crypt once encrypted volumes are created.

I see no way to avoid that.

Encrypted volumes is a complicated thing, indeed. This is why we have
the &quot;Assist&#233; - utiliser tout un disque avec LVM chiffr&#233;&quot; option, that
does everything automagically.



</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>





To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics