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

Bug#516347: debian-installer: guided-with-lvm no longer allows multiple primary partition



Package: debian-installer
Version: 20090123
Severity: normal

With etch's debian-installer we used the preseed lines below to
automatically setup our partitions. /boot and / as primary
partitions, all others as logical volumes.

d-i partman-auto/init_automatically_partition \
   select Guided - use entire disk and set up LVM

d-i partman-auto/expert_recipe string                         \
      boot-root-lvm ::                                        \
              100 512 200 ext2                                \
                      $primary{ } $bootable{ }                \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ ext2 }    \
                      mountpoint{ /boot }                     \
              .                                               \
              1000 512 1000 xfs                               \
                      $primary{ }                             \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ / }                         \
              .                                               \
              512 512 200% linux-swap                         \
                      $lvmok{ }                               \
                      method{ swap } format{ }                \
              .                                               \
              3000 512 4000 xfs                               \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /usr }                      \
              .                                               \
              2000 512 3000 xfs                               \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /var }                      \
              .                                               \
              100 384 200 xfs                                 \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /var/tmp }                  \
              .                                               \
              512 384 2000 xfs                                \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /tmp }                      \
              .                                               \
              200 256 1000 xfs                                \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /home }                     \
              .                                               \
              200 256 1000 xfs                                \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /srv }                      \
              .                                               \
              10 128 1000000000 xfs                           \
                      $lvmok{ }                               \
                      method{ format } format{ }              \
                      use_filesystem{ } filesystem{ xfs }     \
                      mountpoint{ /tobedeleted }              \
              .



Now with d-i from lenny, it refuses to accept our receipe by
complaining: Can't have a partition outside the disk!

In /var/log/partman I can find:

parted_server: add_primary_partition(disk(67108864),2345490-67109161)
parted_server: OUT: Error
parted_server: OUT: Can't have a partition outside the disk!
parted_server: OUT:
parted_server: OUT: Cancel
parted_server: OUT:
/bin/autopartition-lvm: error_handler: exception with type Error
...

The exact same receipe on the same machine with the etch installer
works fine. So I'm not sure if this is now the indeed behavior of
guided-with-lvm (compared to etch) or just some regression.

Andreas

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information



Reply to: