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

Bug#422319: marked as done (Buggy debian-installer of "etch" when using MD with encryption and LVM)



Your message dated Tue, 05 Aug 2008 17:17:02 +0000
with message-id <E1KQQ9e-0004sV-8O@ries.debian.org>
and subject line Bug#393728: fixed in partman-md 42
has caused the Debian Bug report #393728,
regarding Buggy debian-installer of "etch" when using MD with encryption and LVM
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.)


-- 
393728: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=393728
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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!



--- End Message ---
--- Begin Message ---
Source: partman-md
Source-Version: 42

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

partman-md_42.dsc
  to pool/main/p/partman-md/partman-md_42.dsc
partman-md_42.tar.gz
  to pool/main/p/partman-md/partman-md_42.tar.gz
partman-md_42_all.udeb
  to pool/main/p/partman-md/partman-md_42_all.udeb



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 393728@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Otavio Salvador <otavio@debian.org> (supplier of updated partman-md 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@debian.org)


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

Format: 1.8
Date: Tue, 05 Aug 2008 14:01:00 -0300
Source: partman-md
Binary: partman-md
Architecture: source all
Version: 42
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Otavio Salvador <otavio@debian.org>
Description: 
 partman-md - Add to partman support for MD (udeb)
Closes: 391474 391479 391483 393728 398668
Changes: 
 partman-md (42) unstable; urgency=low
 .
   [ Jérémy Bobbio ]
   * Clean up the initialization of MD devices.  Together with the changes
     introduced in partman-base (>= 124), setup of RAID devices won't be lost
     across partman restarts anymore.
     (Closes: #391479, #391483, #393728, #398668)
   * Load the necessary modules and scan RAID arrays during partman
     initialization.  (Closes: #391474)
   * Add device_remove_md() in lib/md-remove.sh: it is necessary to allow
     proper removal of MD devices when we create a new label on a disk
     (for example, during automatic partitioning).
 .
   [ Updated translations ]
   * Arabic (ar.po) by Ossama M. Khayat
   * Belarusian (be.po) by Pavel Piatruk
   * Bulgarian (bg.po) by Damyan Ivanov
   * Czech (cs.po) by Miroslav Kure
   * German (de.po) by Jens Seidel
   * Dzongkha (dz.po) by Tenzin Dendup
   * Esperanto (eo.po) by Felipe Castro
   * Spanish (es.po) by Javier Fernández-Sanguino Peña
   * Basque (eu.po) by Piarres Beobide
   * Finnish (fi.po) by Esko Arajärvi
   * French (fr.po) by Christian Perrier
   * Galician (gl.po) by Jacobo Tarrio
   * Gujarati (gu.po) by Kartik Mistry
   * Croatian (hr.po) by Josip Rodin
   * Indonesian (id.po) by Arief S Fitrianto
   * Italian (it.po) by Milo Casagrande
   * Japanese (ja.po) by Kenshi Muto
   * Korean (ko.po) by Changwoo Ryu
   * Lithuanian (lt.po) by Kęstutis Biliūnas
   * Malayalam (ml.po) by Praveen|പ്രവീണണ്‍ A|എ
   * Marathi (mr.po) by Sampada
   * Norwegian Bokmål (nb.po) by Hans Fredrik Nordhaug
   * Dutch (nl.po) by Frans Pop
   * Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
   * Portuguese (pt.po) by Miguel Figueiredo
   * Romanian (ro.po) by Eddy Petrișor
   * Russian (ru.po) by Yuri Kozlov
   * Slovak (sk.po) by Ivan Masár
   * Slovenian (sl.po) by Matej Kovacic
   * Swedish (sv.po) by Daniel Nylander
   * Thai (th.po) by Theppitak Karoonboonyanan
   * Tagalog (tl.po) by Eric Pareja
   * Turkish (tr.po) by Mert Dirik
   * Vietnamese (vi.po) by Clytie Siddall
   * Wolof (wo.po) by Mouhamadou Mamoune Mbacke
   * Simplified Chinese (zh_CN.po) by Kov Chai
Checksums-Sha1: 
 770749f26037a6d1ad2df646c87fd0512c9e855a 827 partman-md_42.dsc
 8ec5cbce3911730f6adc306ce50ef743371ef0ea 57654 partman-md_42.tar.gz
 d0ced36ad2a86103020551a42009086302c6a97e 33210 partman-md_42_all.udeb
Checksums-Sha256: 
 c3730404a20f8f37a1a44c34ec8934701a5bc2740fb5e472e00f8e2996662c91 827 partman-md_42.dsc
 8ce19e4ce278dde73a09f511bfff7659fff5e2642da97f44f678233df0bdd5c1 57654 partman-md_42.tar.gz
 33d69590e7b3232146014872e6e6cbd46f0b13091a92a255fdcba9779926928b 33210 partman-md_42_all.udeb
Files: 
 df412e7bbc176d10e3b19a28b80a162a 827 debian-installer standard partman-md_42.dsc
 c6e25adab9e425eb5bd50d51a19cba45 57654 debian-installer standard partman-md_42.tar.gz
 51c4e5ce28dc2d6da0884a23cb801afe 33210 debian-installer standard partman-md_42_all.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkiYh2MACgkQLqiZQEml+FVlPwCdHcoC67X2oI+ZXWnUhu1VR8rV
WbgAmwfr6qDk+2yr9vmLrWjH+emXvGZa
=JK4F
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: