On Sat, Mar 9, 2013 at 4:32 AM, Tom H <tomh0...@gmail.com> wrote:
> On Fri, Mar 8, 2013 at 10:12 PM, Tom H <tomh0...@gmail.com> wrote:
>> On Fri, Mar 8, 2013 at 8:04 PM, keshav prabhakar <kes...@hotmail.com> wrote:
>>>>
>>>> Also 1483 seems like a very small preseed file.
>>>
>>> It is.
>>> # ls -l preseed_Debian-6.0.7.cfg
>>> -rw-r--r-- 1 root root 1488 Mar  8 14:00 preseed_Debian-6.0.7.cfg
>>> # more preseed_Debian-6.0.7.cfg
>>> #d-i netcfg/dhcp_timeout string 60
>>> #d-i debian-installer/locale string en_US
>>> #d-i console-keymaps-at/keymap select us
>>> #d-i keyboard-configuration/xkb-keymap select us
>>> #d-i netcfg/choose_interface select eth0
>>> #d-i netcfg/get_nameservers string x.x.x.x
>>> #d-i netcfg/get_hostname string myhostname
>>> #d-i netcfg/get_domain string mydomain
>>> #d-i netcfg/get_hostname seen true
>>> #d-i netcfg/get_domain seen true
>>> #d-i netcfg/get_ipaddress string y.y.y.y
>>> #d-i netcfg/get_netmask string 255.x.x.x
>>> #d-i netcfg/get_gateway string z.z.z.z
>>> #d-i netcfg/confirm_static boolean true
>>> d-i netcfg/wireless_wep string
>>> #d-i mirror/country string US
>>> d-i mirror/protocol string http
>>> d-i mirror/http/hostname string 192.168.1.12
>>> d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/
>>> d-i passwd/make-user boolean false
>>> d-i passwd/root-password password pppp
>>> d-i passwd/root-password-again password pppp
>>> d-i clock-setup/utc boolean true
>>> d-i time/zone string US/Eastern
>>> d-i clock-setup/ntp boolean true
>>> d-i partman-auto/disk string /dev/sda
>>> d-i partman-auto/method string lvm
>>> d-i partman-lvm/device_remove_lvm boolean true
>>> d-i partman-lvm/confirm boolean true
>>> d-i partman-auto/choose_recipe select home
>>> d-i base-installer/kernel/linux/initramfs-generators string initramfs-tools
>>> d-i base-installer/kernel/image string linux-image-2.6-486
>>> d-i debian-installer/allow_unauthenticated boolean true
>>> d-i finish-install/keep-consoles boolean true
>>> d-i finish-install/reboot_in_progress note
>>
>> d-i mirror/country string manual
>>
>> and
>>
>> d-i mirror/suite string stable
>> or
>> d-i mirror/suite string squeeze
>> or
>> d-i mirror/codename string squeeze
>
> Looking at this again, there's at least one "...confirm_nooverwrite..." 
> missing.
>
> You'll need "d-i partman-lvm/confirm_nooverwrite boolean true" and
> possibly "d-i partman/confirm_nooverwrite boolean true" too.
>
> What does this preseed config install? A base install or a desktop
> install? If it's a desktop install, you'll only be able to log in to a
> console because you're not creating a non-root user.

I was curious so I did two installs to answer my questions above.

I don't have a repository or a pxe server so I did them booted from a
wheezy iso, and typing in the url and co stuff at the kernel line.

Not specifying a task creates a desktop install (so I restricted the
second test to the standard task for the sake of speed).

For the first test, I added "d-i partman/confirm_nooverwrite boolean
true" and "d-i partman-lvm/confirm_nooverwrite boolean true" but that
wasn't enough to have an automatic install.

For the second (successful) test, I added "d-i
partman/confirm_nooverwrite boolean true" and "d-i
partman-lvm/confirm_nooverwrite boolean true" as well "d-i
partman/choose_partition select finish".

<begin_preseed>

# preseeded by both of us at the cmdline

d-i auto-install/enable boolean true
d-i debconf/priority select critical
d-i netcfg/choose_interface select eth1

################

# preseeded by you at the cmdline

d-i debian-installer/country string US
d-i debian-installer/keymap string us
d-i debian-installer/language string en
d-i debian-installer/locale string en_US

d-i console-keymaps-at/keymap string us

d-i netcfg/get_domain string h0665.int
d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_hostname string tom

################

# your preseed file - rearranged so it's clearer to my eyes

#d-i debconf/priority select critical

# not needed for a regular install
#d-i debian-installer/allow_unauthenticated boolean true

#d-i debian-installer/country string US
#d-i debian-installer/keymap string us
#d-i debian-installer/language string en
#d-i debian-installer/locale string en_US

#d-i console-keymaps-at/keymap string us
d-i keyboard-configuration/xkb-keymap string us

# not needed for a static address
#d-i netcfg/dhcp_timeout string 60
#d-i netcfg/confirm_static boolean true

#d-i netcfg/choose_interface select eth0
#d-i netcfg/choose_interface select eth1
#d-i netcfg/get_domain string mydomain
#d-i netcfg/get_hostname string myhostname
#d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_ipaddress string 192.168.1.61
d-i netcfg/get_netmask string 255.255.255.0

# not needed
#d-i netcfg/wireless_wep string

# the problematic entry and its replacement
# not needed for a cd install
####d-i mirror/country string US
#d-i mirror/country string manual
#d-i mirror/suite string stable

# not needed for a cd install
#d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/
#d-i mirror/http/hostname string 192.168.1.12
#d-i mirror/protocol string http

d-i clock-setup/ntp boolean true
d-i clock-setup/utc boolean true
d-i time/zone string US/Eastern

d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true

d-i partman-auto/choose_recipe select home

# not needed - for my install
#d-i base-installer/kernel/image string linux-image-2.6-486

# not needed - don't think that mkinitrd-tools or yaird even exist in squeeze
#d-i base-installer/kernel/linux/initramfs-generators string initramfs-tools

d-i passwd/make-user boolean false
d-i passwd/root-password password pppp
d-i passwd/root-password-again password pppp

d-i finish-install/keep-consoles boolean true
d-i finish-install/reboot_in_progress note

################

# added for the first test
d-i apt-setup/use_mirror boolean false
d-i partman/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

################

# added for the second test
d-i apt-setup/use_mirror boolean false
d-i partman/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman/choose_partition select finish
tasksel tasksel/first multiselect standard

</end_preseed>


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=szguri2oqhv_xmwsxfy52rs8z9t0mfhnrtzhz7emo+...@mail.gmail.com

Reply via email to