[Bug 433092] Re: preseed LVM partition recipe broken

john john.l.montes at gmail.com
Wed Feb 24 07:05:47 UTC 2016


I have an update, and a working solution.

Hat tip to the example Tom Weaver has @ http://www.toms-blog.com
/alienvault-lvm-partitioning/

Using Tom's example and some minor sizing modifications and adding a
non-LVM /boot, here's an example that works with ubuntu 14.04 amd64

Attached is the Partitioning section and LVM custom recipe that will create /, /swap, /home, /usr, /var and /boot.
This was tested as part of a no-touch un-attended install on a small 8GB VM (qemu/kvm)

The partman LVM recipe parsing can be fragile and  un-forgiving :-)

** Attachment added: "LVM custom recipe for Preseed files"
   https://bugs.launchpad.net/ubuntu/+source/partman-auto-lvm/+bug/433092/+attachment/4579725/+files/Ubuntu-LVM-Preseed-PartitionSection.txt

-- 
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/433092

Title:
  preseed LVM partition recipe broken

Status in partman-auto-lvm package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: partman-base

  I've spent weeks working with preseed LVM partitioning. I've come to the conclusion that there is little relationship between the sizes in a recipe and the actual allocations. The first couple of partitions in a recipe are OK, but then they wildly diverge.
  I've made some test cases, that include the preseed files, the partman logs and the resultant lvs output.

  In the first case, partman.ok1, the last partition is dropped
  completely. I removed it from the 2nd and 4rd test cases to simplify
  the test case.

  I expected partman would vary the partition size.

  The following attachment is a tgz containing:
  partman.ok1
  partman.ok2
  partman.ok3
  These are all variants of the LVM partition in the partman recipe preseed files, the parman logs, and lvs output.
  The requested sizes vary by a factor of 10 but the resultant partitions barely change at all.

  This is from jaunty, but I verified the same behavior with karmic
  alpha 5 as well.

  The partman packages are the default ones provided on the alternate
  install CD.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto-lvm/+bug/433092/+subscriptions



More information about the foundations-bugs mailing list