[Bug 971608] Re: Unable to create blank lvm volume in preseed install

Ike Panhc ike.pan at canonical.com
Tue Apr 3 07:55:05 UTC 2012


** Changed in: eilt
     Assignee: (unassigned) => Ike Panhc (ikepanhc)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto-lvm in Ubuntu.
https://bugs.launchpad.net/bugs/971608

Title:
  Unable to create blank lvm volume in preseed install

Status in The Eilt project:
  New
Status in “partman-auto-lvm” package in Ubuntu:
  New

Bug description:
  I am trying to create a preseeded netboot install that will create a
  couple of blank partitions that can be used for testing purposes.  The
  partition scheme is as follows:

  sda1 256M ext3 /boot
  sda2 20G blank #Test-Primary
  sda3 extended
  sda5 LVM VG0
  VG0/Root 10G ext4 /
  VG0/Swap 4G swap
  VG0/Test-LVM 20G blank #Test-LVM

  My recipe is this:

  d-i partman-auto/expert_recipe string                         \
        panda-pool ::                                           \
                100 150 256 ext3                                \
                        $primary{ } $bootable{ }                \
                        method{ format } format { }             \
                        use_filesystem{ } filesystem{ ext3 }    \
                        mountpoint{ /boot }                     \
                        label{ BOOT }                           \
                .                                               \
                5000 160 20000 ext4                             \
                        $lvmignore{ }                           \
                        $primary{ }                             \
                        method{ keep }                          \
                .                                               \
                10000 250 12000 ext4                            \
                        $defaultignore{ }                       \
                        $lvmok{ }                               \
                        lv_name{ Root }                         \
                        method{ format } format{ }              \
                        use_filesystem{ } filesystem{ ext4 }    \
                        mountpoint{ / }                         \
                .                                               \
                4000 512 4100 linux-swap                        \
                        $defaultignore{ }                       \
                        $lvmok{ }                               \
                        lv_name{ swap }                         \
                        method{ swap } format{ }                \
                .                                               \
                5000 10000 1000000000 ext4                      \
                        $defaultignore{ }                       \
                        $lvmok{ }                               \
                        method{ keep }                          \
                .                                               \
                        .

  
  The problem is, netboot will prompt me with an alert saying "No file system is specified for partition #1 of LVM VG eilt0, LV keep_1."

  If I add "use_filesystem{ } filesystem{ ext4 } \ " to the blank lvm
  partition, then it complains about not being formatted.  If I change
  the method to format it, then it wants a mountpoint.  The idea is to
  leave it unmounted so that it can be used for testing different
  filesystems, filesystem encryption, etc.  Having to go through all
  this defeats the purpose.

  The base documentation at http://anonscm.debian.org/gitweb/?p=d-i
  /debian-installer.git;a=blob_plain;f=doc/devel/partman-auto-
  recipe.txt;hb=HEAD  indicates this should be possible, although the
  documentation is very sparse.  Other google searches show examples
  where users have created udeb packages to replace partman entirely.
  This is also not an option.

To manage notifications about this bug go to:
https://bugs.launchpad.net/eilt/+bug/971608/+subscriptions




More information about the foundations-bugs mailing list