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

Bug#610377: partman-auto-lvm does not allow all filesystems to be LVM volumes, even with grub2 as default boot loader



Package: partman-auto-lvm
Severity: normal
Tags: d-i squeeze

With grub2 being installed by default in squeeze, it should be possible to instruct partman to create all partitions as LVM logical volumes, however an error is generated in this configuration.

Working preseed configuration:

d-i partman-auto/expert_recipe string                        \
boot-root :: \
              128 50 128 ext3                                            \
                      method{ format } format{ }                \
                      use_filesystem{ } filesystem{ ext3 }    \
                      mountpoint{ /boot }                              \
. \
              1024 10000 10240 ext3                                 \
                      $lvmok{ } lv_name{ root }                    \
                      method{ format } format{ }                 \
                      use_filesystem{ } filesystem{ ext3 }     \
mountpoint{ / } \ . \
              1024 512 1024 linux-swap                              \
                      $lvmok{ } lv_name{ swap }                   \
                      method{ swap } format{ }                     \
              .
The above produces /dev/sda1 as /boot and /dev/sda5 as an LVM VG with root and swap LVs.

Attempted configuration:

d-i partman-auto/expert_recipe string                         \
boot-root :: \
              128 50 128 ext3                                             \
              $lvmok{ } lv_name{ boot }                           \
                      method{ format } format{ }                 \
                      use_filesystem{ } filesystem{ ext3 }     \
                      mountpoint{ /boot }                               \
. \
              1024 10000 10240 ext3                                  \
                      $lvmok{ } lv_name{ root }                     \
                      method{ format } format{ }                  \
                      use_filesystem{ } filesystem{ ext3 }      \
mountpoint{ / } \ . \
              1024 512 1024 linux-swap                               \
                      $lvmok{ } lv_name{ swap }                    \
                      method{ swap } format{ }                     \
              .

The above produces a red screen during install:

"Failed to partition the selected disk"

"This happened because the selected recipe does not contain any partition
that can be created on LVM volumes"

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash




Reply to: