I have an issue with creating partitions when installing Wheezy from preseed file.
When I run the procedure, everything that gets created is one large partition for / which takes the complete disk. I wanted a / with the maximum size of 9G, and the rest would be unpartitioned (later it gets an LVM volume manually). Experimenting, I added a swap partition and a separate /home, which I will delete later. But nothing gets done except big root. Can someone look into it? The complete file is:
Code:
d-i debian-installer/locale string en_US
d-i localechooser/supported-locales multiselect en_US.UTF-8, hr
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i console-keymaps-at/keymap select us
d-i keymap select us
d-i debian-installer/keymap string us
d-i netcfg/choose_interface select auto
d-i netcfg/link_detection_timeout string 15
d-i netcfg/hostname string pxeinstalled
d-i netcfg/hostname seen false
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.hr.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i save-logs/directory string /mnt
# user part
d-i passwd/root-login boolean false
## d-i passwd/root-password-crypted password $1$zrandom5t1
d-i passwd/user-fullname string My FullName
d-i passwd/username string myname
d-i passwd/user-password-crypted password $1$bUrandomx20
d-i passwd/user-default-groups string sudo
d-i time/zone string Europe/Zagreb
#PARTITIONING
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman/confirm_nooverwrite boolean true
#d-i partman-lvm/device_remove_lvm boolean true
#d-i partman-md/device_remove_md boolean true
# http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt
# 7G minimum, 9G max
d-i partman-auto/expert_recipe string root :: \
7000 8999 9000 ext3 \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext3 } \
mountpoint{ / } .
4096 512 50% linux-swap \
method{ swap } \
format{ } .
10000 100 10000000 ext3 \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext3 } \
mountpoint{ /mnt } .
d-i partman-auto/choose_recipe select root
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/mount_style select traditional
# Skip question about not having swap partition
partman-basicfilesystems partman-basicfilesystems/no_swap boolean false
tasksel tasksel/first multiselect
d-i pkgsel/include string \
openssh-server sudo lvm2 ntp vim curl # postinst #etckeeper puppet
d-i popularity-contest popularity-contest/participate boolean false
d-i preseed/late_command string \
chroot /target sh -c "/usr/bin/curl -o /tmp/postinst.sh http://local.ip.addr/postinst.sh && /bin/sh -x /tmp/postinst.sh"
Furthermore, the installer still asks for keyboard. Not a big deal, but it bugs me. This is PXE entry.
append initrd=DEBIAN/amd64/initrd.gz locale=hr
setup/layoutcode=en_US console-setup/layoutcode=us netcfg/get_hostname=pxebooted auto=true priority=critical preseed/url=http://ip.addr./preseed.cfg interface=eth0
Saving of debug logs also doesn't work, but I catch them on host (not /target) and copy them to the /target.
I also want to ask me the hostname,
d-i netcfg/hostname string pxeinstalled
d-i netcfg/hostname seen false, but it doesn't ask me... Lots of small issues...
I must add a user to "sudo" group, or I won't be able to become super user (root is not able to log in).