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

Re: Preseed for Wheezy - Example Help



On Fri, Sep 7, 2012 at 11:00 PM,  <ray@aarden.us> wrote:
>
> I am trying to build a preseed file from my minimum initial install of
> wheezy beta 1.
> I have executed:
> TARGET="/inventory"
> debconf-get-selections --installer > $TARGET/list_packages_installer
> debconf-get-selections > $TARGET/list_packages
>
> list_packages_installer is about 1200 lines.
> lineslist_packages is 345 lines.
>
> Both have timezone and local information among other similarities.  I
> thought the _installer listing was to provide info on configuration and
> the other was to provide info on installed packages.  I did not see
> anything about packages.  It didn't seem that there was any logical
> sequence of the lines; locale and timezone info was spread from the
> beginning to the end.
>
> On the initial installation, there are 2 SSDs and 1 CDROM.  Each 60G SSD
> had 6 labeled partitions.  They are all observable from the console.  In
> the two listings, there is only one line that address drive size:
>
> partman-partitioning    partman-partitioning/new_partition_size string  6.0
> GB
> I did not see anything that suggested which drive or partition this was.
>
> I used the preseed example file
> (http://www.debian.org/releases/squeeze/example-preseed.txt  which is
> for squeeze) to help understand the content but it is still a challenge.
>
> While I have read that the debconf output should not be as a preseed, it
> looks functional.  It just doesn't seem to have everything.
>
> I have copied all of /etc as it may be useful to recovery my current
> installation after trying the preseed but I haven't figured out how or
> what the limitations are.

1) You're setting yourself for a problem if you use
"debconf-get-selections --installer" to create a preseed file against
the recommendations of the d-i developers and you shouldn't use
"debconf-get-selections".

2) There's a wheezy example [a]. I haven't checked what differences
there are, if any, between it and the squeeze one.

a. http://www.debian.org/releases/wheezy/example-preseed.txt

3) You'll only have the packages installed by d-i listed in
"debconf-get-selections --installer". "dpkg --get-selections" on the
old box will list your current packages.

4) You won't have You can use "list-devices disk", "list-devices
partition", shell commands, and "debconf-set" ";-separated" in "d-i
partman/early_command string" to select a specific disk.


Reply to: