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

Re: Problem with preseed



On Thu, Aug 11, 2011 at 7:06 AM, Wawrzek Niewodniczanski
<wawrzek.niewodniczanski@citrix.com> wrote:
>
> I've been trying to write a preseed config file from some time. It's nearly
> ready. The last obstacle is partitioning. Autoconfig fails in two places:
> - first I have to select and confirm  'Guided - use entire disk and set up
> LVM',
> - later also 'Finish partitioning and write changes to disk',
>
> # PARTITIONS
> d-i partman-auto/disk                 string /dev/xvda
> d-i partman-auto/method                string lvm
> d-i partman-lvm/device_remove_lvm    boolean true
> d-i partman-md/device_remove_md        boolean true
> d-i partman-lvm/confirm                boolean true
> 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 ::                        \
>         50 300 300 ext3           \
>             $primary{ }           \
>             $bootable{ }          \
>             method{ format }      \
>             format{ }             \
>             use_filesystem{ }     \
>             filesystem{ ext2 }    \
>             mountpoint{ /boot }   \
>             .\
>         256 512 100% linux-swap    \
>             $lvmok{ }             \
>             method{ swap }        \
>             format{ }             \
>             .\
>         5000 10000 10000 ext3     \
>             $lvmok{ }             \
>             method{ format }      \
>             format{ }             \
>             use_filesystem{ }     \
>             filesystem{ ext3 }    \
>             mountpoint{ / }       \
>             .
>
> d-i partman-partitioning/confirm_write_new_label boolean true
> d-i partman/choose_partition select finish
> d-i partman/confirm boolean true
> d-i partman/confirm_nooverwrite boolean true
>
> d-i partman/mount_style select traditional

I don't undertand how you're using both "d-i
partman-auto/init_automatically_partition select Guided - use entire
disk and set up LVM" and "d-i partman-auto/expert_recipe string ...".

The former shouldn't be there if you want to use your own recipe.

Otherwise it looks fine. You might need "lvmignore{ } " in the "/boot"
part of the recipe.

You can use "in_vg{ vgname }" and "lv_name{ lvname }" to customize the
VG and LV names.

You don't need the many "\". Within a recipe, tabs and new lines are
converted to spaces and white space is then converted to one space.


Reply to: