Skipping install prompts with preseed file?

Asked by Paul


I was wondering if it would be possible to setup a preseed file with Cubic that would skip all prompts during installation and go straight to completion.

I have noticed using adduser in chroot to setup the account will completely skip the user creation during install, which is good.

I am experimenting with preseed file examples online such as: and wondering if its possible to skip all the prompts.

I want to also do this in an offline environment.

Question information

English Edit question
Cubic Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :

I don't know if you came across this in your research, but it looks like this post may be helpful...

If you try it out, please share your experience (you can post it right here in this question).

Also, if there are some files that must be edited to allow an unattended install, but Cubic doesn't currently support editing those files, please list the files-- may be Cubic can be enhanced to allow editing those files.

Revision history for this message
Paul (cubicuser408) said :

Hi Cubic-wizard,

Thanks for the response. I tried for a couple days using the steps from that post mostly editing the txt.cfg and preseed file but could not get it to work. Each time I loaded up the image on the test machine I was still greeted with the install prompts.

Luckily another friend helped me with the issue and suggested editing the grub file itself and linking that to the the seed file. making this changes from within Cubic was possible and the automatic install finally worked!

Grub file:
if loadfont /boot/grub/font.pf2 ; then
 set gfxmode=auto
 insmod efi_gop
 insmod efi_uga
 insmod gfxterm
 terminal_output gfxterm

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Install Test Ubuntu" {
    set gfxpayload=keep
    linux /casper/vmlinuz file=/cdrom/preseed/ks.seed auto=true priority=critical keyboard-configuration/layoutcode=us boot=casper automatic-ubiquity initrd=/casper/initrd.lz quiet splash noprompt noshell ---
    initrd /casper/initrd

Preseed file:
### Partitioning
d-i partman-auto/disk string /dev/sda
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
d-i partman-auto/choose_recipe select atomic

# This makes partman automatically partition without confirmation
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/confirm_nooverwrite boolean true

# Locale
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

# Network
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/choose_interface select auto

# Clock
d-i clock-setup/utc-auto boolean true
d-i clock-setup/utc boolean true
d-i time/zone string US/Pacific
d-i clock-setup/ntp boolean true

# Packages, Mirrors, Image
d-i base-installer/kernel/override-image string linux-server
d-i base-installer/kernel/override-image string linux-image-amd64
d-i mirror/country string US
d-i mirror/http/proxy string
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
d-i pkgsel/install-language-support boolean false
tasksel tasksel/first multiselect ubuntu-desktop

# Users
d-i passwd/user-fullname string UseYours
d-i passwd/username string UseYours
d-i passwd/user-password-crypted password UseYours/
#d-i passwd/root-login boolean true
#d-i passwd/root-password-crypted password [crypt 3]
#d-i user-setup/allow-password-weak boolean true

# Grub
d-i grub-installer/grub2_instead_of_grub_legacy boolean true
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
ubiquity ubiquity/poweroff boolean true

Revision history for this message
Cubic PPA (cubic-wizard) said :

I'm glad you got it to work, and thanks for posting your solution as well!