Ubuntu Kickstart/Kickseed does not work with dual boot hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-installer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
kickseed (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When trying to use kickseed to partition a dual boot host the partitioning menu where you can select Guided - use free space, etc is displayed and no matter of preseed d-i partman options work.
Below is the kickstart file I am using
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone America/Vancouver
# Root password
rootpw --iscrypted <redacted>
#Initial user
user nsgadmin --fullname "NSG Administrator" --iscrypted --password <redacted>
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://
# System bootloader
bootloader --md5pass <our crypted password> --location=mbr
#Clear the Master Boot Record
zerombr no
#Partition clearing information
clearpart --linux
# explicitly define partition table
part swap --recommended
part /boot --fstype ext3 --size 100
part / --fstype xfs --size 1 --grow
# System authorization infomation. Default to /etc/passwd
# we will join AD at next boot
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --disabled
#X Window System configuration information
#xconfig --depth=32 --resolution=
#Package install information
%packages --resolvedeps
#@ base
@ core
#@ ubuntu-standard
#@ ubuntu-desktop
%pre
preseed --owner d-i apt-setup/
preseed --owner netcfg netcfg/dhcp_timeout string 60
# perform unattended package upgrades
preseed d-i pkgsel/
# attempt a retry if the apt-cacher mirror fails for some reason
preseed d-i apt-setup/
%post
# enable useful repositories
preseed --owner d-i apt-setup/universe boolean true
preseed --owner d-i apt-setup/
preseed --owner d-i apt-setup/non-free boolean true
# Auto-accept licenses for Java and VMware
preseed --owner sun-java6-jdk shared/
preseed --owner sun-java6-jre shared/
preseed --owner vmware-player shared/
(
lsb_release -d >> /etc/SystemInfo
echo "Description : Ubuntu 9.04" >> /etc/SystemInfo
echo "Hostname : `hostname`" >> /etc/SystemInfo
echo "Installation Method : kickstart" >> /etc/SystemInfo
echo "Kicstart File : 9.04-sfuad" >> /etc/SystemInfo
echo "Install Date : `date +%b-%d-
export DEBIAN_
echo "Performing a full upgrade... This may take some time"
aptitude -y update
aptitude -y full-upgrade
# Since some packages rely on third party repositories to install
# do these package installations after repositories are there
packages="
a52dec \
acct \
acroread \
acroread-fonts \
adblock-plus \
alien \
alpine \
autofs \
fail2ban
flashplugin-nonfree \
#libpam-mount \
likewise-open5 \
openssh-blacklist \
openssh-
openssh-client \
openssh-server \
smbfs \
sun-java6-jre \
winbind"
for pkg in $packages; do
echo ""
echo "Performing $pkg package installation"
aptitude -y install $pkg
done
# Set the Java to use
update-
#Fail2Ban
wget http://<redacted>
wget http://<redacted>
wget http://<redacted>
wget http://<redacted>
wget http://<redacted>
cp /etc/likewise-
wget http://<redacted>
) > /root/post-
I have tried to add
# If the system has free space you can choose to only partition that space.
d-i partman-
but it did not work with or without preseed prepended to the line. Then I tried...
# The presently available methods are: "regular", "lvm" and "crypto"
d-i partman-auto/method string regular
but it did not work with or without preseed prepended to the line. Then I tried...
# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /usr, /var, and /tmp partitions
d-i partman-
but it did not work with or without preseed prepended to the line. When that didn't work I thought that this must be a bug and so here I am. I was sure to add these lines when testing any of the configurations but the menu keeps coming up.
# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
d-i partman/
d-i partman/
d-i partman/confirm boolean true
I also tried to disable the kickstart partitioning options to no avail. Am I doing something wrong? Is this a real bug? If I'm doing something wrong what should the kickstart/kickseed file look like? Also, if there is no partition on the disk kickstart will partition the system as a linux only host. This doesn't not happen with kickseed either.
description: | updated |
description: | updated |
Well, your syntax is wrong in a few places - you can't say 'preseed d-i foo/bar type value', you must say either 'preseed --owner d-i foo/bar type value' or (only if the owner is "d-i") just 'preseed foo/bar type value'. Also, you can't put 'preseed' lines in %pre or %post - they must be in the main block of directives at the top. I doubt that any of this is the direct cause of your problem, though.
Could you please do the following: Try a test installation, wait until it gets to the offending dialog, and then press Alt-F2 and run 'anna-install openssh- client- udeb' at the shell. This will install scp in the installer environment so that you can copy out logs. Extract /var/log/syslog and /var/log/partman, and attach them both to this bug.