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

Re: preseed doesn't overwrite existing lvm partitioning



On March 23, 2012 07:17:17 pm Floris Bos / Maxnet wrote:

> On 03/23/2012 07:51 PM, Ryan Braun [ADS] wrote:

> > I could have sworn I had tested this previously, but it doesn't seem

> > to be working for me. I have a preseed configured and it will install

> > on virgin hardware without problem. But if I run the same install

> > procedure for a second time on the same machine, I keep getting no

> > root partition errors from the partitioner.

>

> Noticed that as well.

> Currently use the following ugly workaround to get the first disk (on

> some systems it is not /dev/sda) and remove LVM stuff:

>

> d-i partman/early_command string debconf-set partman-auto/disk

> "$(list-devices disk | head -n1)" ; pvremove -y -ff `list-devices disk |

> head -n1`* || true

>

>

> (To get it more foolproof, you might also need to check other disks in

> the system for the presense of lvm volume group names that might

> conflict with what the installer wants to use)

Cheers, worked like a charm.

Though I would like to maybe see a new partman d-i option. d-i partman/confirm_all boolean true kind of thing. Throw a forced pvremove under that heading and have all the partman-md partman-lvm directives honor it aswell. Might clean up some of the partman options in preseeding.

/shrug

--

Ryan Braun

Aviation and Defence Services Division

Chief Information Officer Branch, Environment Canada

CIV: 204-833-2500x2625 CSN: 257-2625 FAX: 204-833-2558

E-Mail: Ryan.Braun@ec.gc.ca


Reply to: