how to skip these confirmation dialogs during ubuntu 14.04 automatic installation with preseed?

Bug #1352163 reported by bugproxy
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
debian-installer (Ubuntu)
Expired
High
Unassigned

Bug Description

Problem Description
==============
how to skip these confirmation dialogs during ubuntu 14.04 automatic installation with preseed?

The automatic installation process is interrupted by the following confirmation dialogs:
   +------------+ [!!] Choose a mirror of the Ubuntu archive +-------------+
   | |
   | Please enter the directory in which the mirror of the Ubuntu archive |
   | is located. |
   | |
   | Ubuntu archive mirror directory: |
   | |
   | /install/ubuntu14.04/x86_64__________________________________________ |
   | |
   | <Go Back> <Continue> |
   | |
   +-----------------------------------------------------------------------+

<Tab> moves; <Space> selects; <Enter> activates buttons

  +------------------------+ [!!] Partition disks +-------------------------+
  | |
  | This is an overview of your currently configured partitions and mount |
  | points. Select a partition to modify its settings (file system, mount |
  | point, etc.), a free space to create partitions, or a device to |
  | initialize its partition table. |
  | |
  | SCSI1 (0,3,0) (sdd) - 64.0 GB ATA MTFDDAK064MAR-1J |
  | > 1.0 MB FREE SPACE a |
  | > #1 52.4 MB B fat16 EFI System P a |
  | > #2 268.4 MB xfs a |
  | > #3 16.9 GB swap a |
  | > #4 46.8 GB K lvm a |
  | > 335.4 kB FREE SPACE a |
  | a |
  | Undo changes to partitions |
  | Finish partitioning and write changes to disk |
  | |
  | <Go Back> |
  | |
  +-------------------------------------------------------------------------+

<F1> for help; <Tab> moves; <Space> selects; <Enter> activates buttons

    +-----------------------+ [!!] Partition disks +-----------------------+
    | |
    | If you continue, the changes listed below will be written to the |
    | disks. Otherwise, you will be able to make further changes manually. |
    | |
    | WARNING: This will destroy all data on any partitions you have |
    | removed as well as on the partitions that are going to be formatted. |
    | |
    | The following partitions are going to be formatted: |
    | partition #1 of SCSI1 (0,0,0) (sda) as EFIboot |
    | partition #2 of SCSI1 (0,0,0) (sda) as ext3 |
    | partition #3 of SCSI1 (0,0,0) (sda) as swap |
    | |
    | Write the changes to disks? |
    | |
    | <Yes> <No> |
    | |
    +----------------------------------------------------------------------+

<Tab> moves; <Space> selects; <Enter> activates buttons

   +-------------------+ [!!] Finish the installation +--------------------+
   | |
  +| Installation complete |
  || Installation is complete, so it is time to boot into your new system. |
  || Make sure to remove the installation media (CD-ROM, floppies), so |
  || that you boot into the new system rather than restarting the |
  || installation. |
  || |
  +| <Go Back> <Continue> |
   | |
   +-----------------------------------------------------------------------+

Contact Information = <email address hidden>

---uname output---
Linux x3550m4n07 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Machine Type = x3550m4

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 The preseed configure file is:
### Localization
d-i debian-installer/locale string en_US
d-i localechooser/supported-locales multiselect en_US.UTF-8

# Keyboard Selection
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string en

### Network Configuration

d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
d-i netcfg/dhcp_timeout string 120
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.

d-i mirror/country string manual
d-i mirror/protocol string http
d-i mirror/http/directory string /install/ubuntu14.04/x86_64
d-i mirror/http/proxy string

# Suite to install.
#d-i mirror/suite string testing
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string testing

### Partitioning
# This creates a small /boot partition, suitable
# swap, and uses the rest of the space for the root partition:

d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true

#create the /tmp/partitioning based on the uefi or legacy bios
d-i partman/early_command string \
    debconf-set partman-auto/disk ""
d-i partman-auto/expert_recipe_file string /tmp/partitioning

# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.

d-i partman/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-md/confirm boolean true

### Account setup

d-i passwd/root-login boolean true
d-i passwd/make-user boolean false

d-i passwd/root-password-crypted password $1$O1J0hUkC$XXFLmFTUVmdFB7qpsznlZ.

### Clock and time zone setup

d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 10.1.5.185
d-i clock-setup/utc boolean true
d-i time/zone string America/New_York

### Apt setup

d-i apt-setup/multiverse boolean false
d-i apt-setup/universe boolean false
d-i apt-setup/backports boolean false
d-i apt-setup/updates boolean false

### Boot loader installation

d-i grub-installer/only_debian boolean true

### Package selection

tasksel tasksel/first multiselect standard

# gawk required for the xCAT scripts to work
# Otherwise it installs mawk, which doesn't work

d-i pkgsel/include string openssh-server ntp gawk nfs-common snmpd

d-i debian-installer/allow_unauthenticated string true
d-i pkgsel/update-policy select none
d-i pkgsel/updatedb boolean false

### Finishing up the installation
d-i finish-install/reboot_in_progress note

### X configuration
xserver-xorg xserver-xorg/autodetect_monitor boolean true

xserver-xorg xserver-xorg/config/monitor/selection-method \
  select medium

xserver-xorg xserver-xorg/config/monitor/mode-list \
  select 1024x768 @ 60 Hz

d-i preseed/early_command string wget http://`cat /tmp/xcatserver`/install/autoinst/x3550m4n07.pre; \
     chmod u+x x3550m4n07.pre; \
     ./x3550m4n07.pre

d-i preseed/late_command string wget http://`cat /tmp/xcatserver`/install/autoinst/x3550m4n07.post; \
     chmod u+x x3550m4n07.post; \
     cp ./x3550m4n07.post /target/root/post.script; \
     mount -o bind /proc /target/proc -t proc; \
     mount -o bind /dev /target/dev; \
     mount -o bind /dev/pts /target/dev/pts -t devpts; \
     mount -o bind /sys /target/sys; \
     chroot /target /root/post.script

Install method: Network

Install disk info:
root@x3550m4n07:~# fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdc: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdc1 1 125045423 62522711+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdd: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdd1 1 125045423 62522711+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sda1 1 125045423 62522711+ ee GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 64.0 GB, 64023257088 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125045424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdb1 1 125045423 62522711+ ee GPT

Disk /dev/mapper/system-root: 46.8 GB, 46774878208 bytes
255 heads, 63 sectors/track, 5686 cylinders, total 91357184 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/system-root doesn't contain a valid partition table

Install ISO Information: # cat /install/ubuntu14.04/x86_64/.disk/info Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)root@ubumn14

== Comment: #2 - Guang Cheng Li <email address hidden> - ==
(In reply to comment #1)
> Reducing the severity of the bug since the confirmation dialogues is not
> stopping the installation and end up with successful installation.

No, considering a cluster with 10,000+ nodes, pressing the "Yes/No" for each node is a show stopper. Our product is designed to automatic deploy and manage the scalability HPC cluster, interaction during the os provisioning is taken as a blocking issue from our perspective. Thanks.

== Comment: #3 - Luciano Chavez <email address hidden> - ==
For the partitioning without confirmation I found a suggestion to try adding:

    d-i partman/choose_partition \
          select Finish partitioning and write changes to disk

before

    d-i partman/confirm_nooverwrite boolean true

== Comment: #4 - SONG YANG <email address hidden> - ==
hi, I tried this method and still failed to bypass this confirmation

...

# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.

d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/choose_partition \
    select Finish partitioning and write changes to disk
d-i partman/confirm_nooverwrite boolean true
d-i partman-md/confirm boolean true
...

(In reply to comment #3)
> For the partitioning without confirmation I found a suggestion to try adding:
>
> d-i partman/choose_partition \
> select Finish partitioning and write changes to disk
>
> before
>
> d-i partman/confirm_nooverwrite boolean true

Revision history for this message
bugproxy (bugproxy) wrote : the log of debian installer

Default Comment by Bridge

tags: added: architecture-x8664 bugnameltc-113870 severity-critical targetmilestone-inin1404
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1352163/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → debian-installer (Ubuntu)
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2014-08-20 06:08 EDT-------
Hi Ubuntu,

Is there any update on the bug ?

Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debian-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Is this issue still happening?

I'm curious, what are the parameters passed to the system via DHCP/BOOTP or whatever to the kernel command-line? I'd expect at least preseed/url, but is something else passed, perhaps priority=? Please include the full list of paramters passed to the kernel for this automated deployment if possible.

Changed in debian-installer (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for debian-installer (Ubuntu) because there has been no activity for 60 days.]

Changed in debian-installer (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Anthony (a-servedio) wrote :

Please revive this. None of all the google links related to: "preseed Choose a mirror of the ubuntu archive" have a solution.

# part of my debconf console log:
--> FSET mirror/http/countries seen true
<-- 0 true
--> INPUT high mirror/http/countries
<-- 30 question skipped
--> GO
<-- 0 ok
--> GET mirror/http/countries
<-- 0 CA
--> SET mirror/country CA
<-- 0 value set
--> GO
<-- 0 ok
--> GET mirror/country
<-- 0 CA
--> GET debian-installer/locale
<-- 0 en_CA
--> SUBST mirror/http/mirror mirrors ca.archive.ubuntu.com
Adding [mirrors] -> [ca.archive.ubuntu.com]
<-- 0
--> GET mirror/http/mirror
<-- 0 CC.archive.ubuntu.com
--> SET mirror/http/mirror ca.archive.ubuntu.com
<-- 0 value set
--> INPUT high mirror/http/mirror
<-- 0 question will be asked
--> GO

# related preseed
d-i debian-installer/locale string en_CA
d-i mirror/country string manual
d-i mirror/http/hostname string ca.archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
d-i mirror/suite string trusty

# kernel params
linux (loop)/linux noprompt hostname=test1.home.ttc locale=en_CA keyboard-configuration/layoutcode=us
url=http://ttc.solutions/skfldejljlsfklsjf.cfg live-installer/net-image=http://ttc.solutions/ubuntu/install/filesystem.squashfs DEBCONF_DEBUG=5

.. and I get stuck on the dialog "Choose a mirror of the Ubuntu archive" with in my case, ca.archive.ubuntu.com.
I tried with a custom mirror (different mirror/http/hostname), still ca.archive.ubuntu.com came up as a choice and in the log above. Also tried with en_US instead in both kernel params and preseed. And I checked out every google result available on the subject. No luck.

Help :)

Revision history for this message
Anthony (a-servedio) wrote :

grr.. typed too fast. Forget about the image=*squashfs part. It's a redundant config from an earlier test.

Revision history for this message
bugproxy (bugproxy) wrote : the log of debian installer

Default Comment by Bridge

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.