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

Bug#422319: Buggy debian-installer of "etch" when using MD with encryption and LVM



Package: debian-installer
Version: Debian 4.0r0 network-CD or DVD1 "etch"

Hello,

when I setup following disc strukture: 

 /boot       SWAP           /       /var    /usr    /home    /misc
,--------, ,--------, ,--+--------+-------+-------+--------+--------+--, -----
| BOOT   | | SWAP   | |  |  ROOT  |  VAR  |  USR  |  HOME  |  MISC  |  |   ^
`---*----´ `---*----´ |  `--------+-------+-------+--------+--------´  |   |
    |          |      |                                                |  LVM
    |          |      |           LVM VG "SYSTEM"                      |   |
    |          |      |                                                |   |
,---*----, ,---*----, +------------------------------------------------+ -----
| md0    | | md1    | |               md2                              | raid1
`-*----*-´ `-*----*-´ `-------*---------------------*------------------´ -----
  |    |     |    |           |                     |
  |    |     |    |           |                     |
,-*--, |   ,-*--, |      ,----*-,                   |
|hda1| |   |hda2| |      | hda5 |                   |                 /dev/hda
`----´ |   `----´ |      `------´                   |
    ,--*-,     ,--*-,                             ,-*----,
    |hdc1|     |hdc2|                             | hdc5 |            /dev/hdc
    `----´     `----´                             `------´

                                                            (DVD-ROM) /dev/hdd

the system starts up and all works fine. :-)



But when I setup following

 /boot       SWAP           /       /var    /usr    /home    /misc
,--------, ,--------, ,--+--------+-------+-------+--------+--------+--, -----
| BOOT   | | SWAP   | |  |  ROOT  |  VAR  |  USR  |  HOME  |  MISC  |  |   ^
`---*----´ `---*----´ |  `--------+-------+-------+--------+--------´  |   |
    |          |      |                                                |  LVM
    |          |      |           LVM VG "SYSTEM"                      |   |
    |          |      |                                                |   |
    |      ,---*----, +------------------------------------------------+ -----
    |      |md1_cryp| |               md2_crypt                        |
    |      | key    | |                Key                             | crypt
    |      | random | |                Passphrase                      |
,---*----, +--------+ +------------------------------------------------+ -----
| md0    | | md1    | |               md2                              | raid1
`-*----*-´ `-*----*-´ `-------*---------------------*------------------´ -----
  |    |     |    |           |                     |
  |    |     |    |           |                     |
,-*--, |   ,-*--, |      ,----*-,                   |
|hda1| |   |hda2| |      | hda5 |                   |                 /dev/hda
`----´ |   `----´ |      `------´                   |
    ,--*-,     ,--*-,                             ,-*----,
    |hdc1|     |hdc2|                             | hdc5 |            /dev/hdc
    `----´     `----´                             `------´

                                                            (DVD-ROM) /dev/hdd

the partitioner/installer say at the point when it setup SWAP:
---------------------------------------------------------------------------
The attempt to mount a file system with type swap in Encrypted volume
(md1_crypt) at none failed.

You may resume partitioning from the partitioning menu.

Do you want to resume partitioning?

   <Go Back>                                   <Yes>   <NO>
---------------------------------------------------------------------------


so I try the followng (SWAP without MD-Device):

 /boot       SWAP           /       /var    /usr    /home    /misc
,--------, ,--------, ,--+--------+-------+-------+--------+--------+--, -----
| BOOT   | | SWAP   | |  |  ROOT  |  VAR  |  USR  |  HOME  |  MISC  |  |   ^
`---*----´ `---*----´ |  `--------+-------+-------+--------+--------´  |   |
    |          |      |                                                |  LVM
    |          |      |           LVM VG "SYSTEM"                      |   |
    |          |      |                                                |   |
    |      ,---*----, +------------------------------------------------+ -----
    |      |hda2_cry| |               md1_crypt                        |
    |      | key    | |                Key                             | crypt
    |      | random | |                Passphrase                      |
,---*----, `---*----´ +------------------------------------------------+ -----
| md0    |     |      |               md1                              | raid1
`-*----*-´     |      `-------*---------------------*------------------´ -----
  |    |       |              |                     |
  |    |       |              |                     |
,-*--, |     ,-*--,      ,----*-,                   |
|hda1| |     |hda2|      | hda5 |                   |                 /dev/hda
`----´ |     `----´      `------´                   |
    ,--*-,                                        ,-*----,
    |hdc1|                                        | hdc5 |            /dev/hdc
    `----´                                        `------´

                                                            (DVD-ROM) /dev/hdd

I mean the partitioner/installer setups all correctly!
I install the software.
I install the GRUB for booting.
Then I reboot at the end.

But the output at boot time is following:
---------------------------------------------------------------------------
... start of the Kernel ...
...
Begin: Loading MD modules
md: md driver ...
md: bitmap Version 4.39
md raid1 personality registered for level 1
success: loaded module raid1.
Done.
Begin: Assembling all MD arrays
md: md0 stopped.
md: bind<hdc1>
md: bind<hda1>
raid1: raid set md0 active with 2 out of 2 mirrors
mdadm: /dev/md0 has been started with 2 drives
md: md1 stopped.
md: bind<hdc5>
md: bind<hda5>
raid1: raid set md1 active with 2 out of 2 mirrors
mdadm: /dev/md1 has been started with 2 drives
Success: assembled all arrays.
Done.
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: ...
  Volume group "SYSTEM" not found
Done.
Begin: Waiting for root file system... ...
Done.
        Check root= bootarg cat /proc/cmdline
        or missing modules, devices: cat /proc/modules ls /dev
ALERT! /dev/mapper/SYSTEM-ROOT does not exist. Dropping to a shell!

BusyBox v1.1.3 (Debian 1:1.1.3-4) Build-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) _
---------------------------------------------------------------------------

initrd don't ask for the passphrase for md1_crypt :-(
Further I mean hda2_crypt are not initialiced with random key.

---------------------------------------------------------------------------

Now I install following strukture:


 /boot       SWAP           /       /var    /usr    /home    /misc
,--------, ,--------, ,--+--------+-------+-------+--------+--------+--, -----
| BOOT   | | SWAP   | |  |  ROOT  |  VAR  |  USR  |  HOME  |  MISC  |  |   ^
`---*----´ `---*----´ |  `--------+-------+-------+--------+--------´  |   |
    |          |      |                                                |  LVM
    |          |      |           LVM VG "SYSTEM"                      |   |
    |          |      |                                                |   |
,---*----, .--------. +--------------+-+--------------+-+--------------+ -----
| md0    | | md1    | |     md2      | |     md3      | |     md4      | raid1
`-*----*-´ `-*----*-´ `-----*---*----´ `-----*---*----´ `-----*---*----´ -----
  |    |     |    |         |   |            |   |            |   |
  |    |     |    |         |   |            |   |            |   |
,-*--, |   ,-*--, |    ,----*-, |       ,----*-, |       ,----*-, |
|hda1| |   |hda2| |    | hda5 | |       | hda6 | |       | hda7 | |   /dev/hda
`----´ |   `----´ |    `------´ |       `------´ |       `------´ |
    ,--*-,     ,--*-,      ,----*-,         ,----*-,         ,----*-,
    |hdc1|     |hdc2|      | hdc5 |         | hdc6 |         | hdc7 | /dev/hdc
    `----´     `----´      `------´         `------´         `------´
  (64MB)     (1GB)        (4GB)            (4GB)            (4GB)

                                                            (DVD-ROM) /dev/hdd


It works fine!



What I wish:


 /boot       SWAP           /       /var    /usr    /home    /misc
,--------, ,--------, ,--+--------+-------+-------+--------+--------+--, -----
| BOOT   | | SWAP   | |  |  ROOT  |  VAR  |  USR  |  HOME  |  MISC  |  |   ^
`---*----´ `---*----´ |  `--------+-------+-------+--------+--------´  |   |
    |          |      |                                                |  LVM
    |          |      |           LVM VG "SYSTEM"                      |   |
    |          |      |                                                |   |
    |      ,---*----, +--------------+-+--------------+-+--------------+ -----
    |      |md1_cryp| | md2_crypt    | | md3_crypt    | | md4_crypt    |
    |      | key    | |  key         | |  key         | |  key         | crypt
    |      | random | |  Passphrase1 | |  Passphrase2 | |  Passphrase3 |
,---*----, +--------+ +--------------+ +--------------+ +--------------+ -----
| md0    | | md1    | |     md2      | |     md3      | |     md4      | raid1
`-*----*-´ `-*----*-´ `-----*---*----´ `-----*---*----´ `-----*---*----´ -----
  |    |     |    |         |   |            |   |            |   |
  |    |     |    |         |   |            |   |            |   |
,-*--, |   ,-*--, |    ,----*-, |       ,----*-, |       ,----*-, |
|hda1| |   |hda2| |    | hda5 | |       | hda6 | |       | hda7 | |   /dev/hda
`----´ |   `----´ |    `------´ |       `------´ |       `------´ |
    ,--*-,     ,--*-,      ,----*-,         ,----*-,         ,----*-,
    |hdc1|     |hdc2|      | hdc5 |         | hdc6 |         | hdc7 | /dev/hdc
    `----´     `----´      `------´         `------´         `------´
  (64MB)     (1GB)        (4GB)            (4GB)            (4GB)

                                                            (DVD-ROM) /dev/hdd


Features:
SWAP encrypted (random key) and with a MD-Device.
More than one crypted MD-Devices for the LVM Volume Group "SYSTEM"
with different passphrases.

---------------------------------------------------------------------------

There is a further problem when hda have an error:
Then I must boot from hdc (in BIOS: HDD-2). But there ist no
grub installed and I don't know if the menu.lst ist korrekt for
booting from hdc (BIOS: HDD-2).

Regards
Andreas Gerlich
-- 
Dipl.-Ing.(FH) Andreas Gerlich, Puccini-Ring 14, D-86956 Schongau

Tel: +49 163 / 4 36 32 32 (mobile phone, www.simyo.de)
    +49 8861 / 6 90 95 11 (private, VoIP, answering machine after 20 seconds)
    +49 8861 / 219 - 4122 (computer department in www.herzogsaegmuehle.de)

project (Z80 emulator) --> http://www.mathematik.uni-ulm.de/users/ag/yaze-ag/

Mitspielen strengstens erlaubt!




Reply to: