1

Pretty new to the ubuntu scene and i'm trying to automate the install of a ubuntu 16.04 desktop. I have managed to get my install process to the point that it uses preseed values to answer all of the questions during the install process. Then the system restarts but then my problem emerges: it asks the user configuration questions again. So it first runs a window with a title "install (as superuser)" and the second window is called "system configuration". After I have answered the questions again and the system reboots i have two users in the login screen, the preseeded one and the one i manually had to do. Anyone has any insight to my problem?

Booting from efi USB:

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

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

set timeout=0 set default="0"

menuentry "Start " { set gfxpayload=keep linux /casper/vmlinuz boot=casper file=/cdrom/install/preseed.cfg automatic-ubiquity quiet noprompt auto=ture priority=critical ubiquity/reboot=true noshell splash languagechooser/language-name=English --
initrd /casper/initrd.lz

}

and my preseed file (preseed.cfg)

Networking

d-i netcfg/choose_interface select auto
d-i netcfg/disable_dhcp boolean false
d-i netcfg/wireless_wep string
d-i netcfg/dhcp_options select

Do not configure the network at this time

d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_timeout string 3
d-i netcfg/get_hostname string ubuntu

Do not filter out disks with mounted partitions.

d-i partman/filter_mounted boolean false

Remove existing software RAID partitions if they exist.

d-i partman-md/device_remove_md boolean true

Do not encrypt user's home directory.

d-i user-setup/encrypt-home boolean false

Do not require mount points for partitions with filesystems.

d-i partman-basicfilesystems/no_mount_point boolean false

non-efi system

d-i partman-efi/non_efi_system boolean true

select built-in emmc device

d-i partman-auto/disk string /dev/mmcblk0

use the usual partition types for your architecture

d-i partman-auto/method string regular

no swap partition

d-i partman-basicfilesystems/no_swap boolean false

use full emmc and only have one partition

d-i partman-auto/expert_recipe string \
efi-root :: \
256 300 512 free \
$iflabel{ gpt } \
method{ efi } format{ } \
. \
4000 10000 -1 ext4 \
$primary{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.

select disk recipe listed above

d-i partman-auto/choose_recipe select efi-root

Partition without confirmation

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

Boot loader This one makes grub-installer install to the MBR even if it finds some other OS

d-i grub-installer/with_other_os boolean true
d-igrub-installer/only_debian boolean false
d-i grub-installer/bootdev string /dev/mmcblk0

Keyboard selection

d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/variantcode string

Local

d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/locale seen true

Timezone

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

disable automatic keymap detection

d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

User Creation

d-i passwd/root-login boolean false
d-i passwd/user-fullname string fullname
d-i passwd/user-fullname seen true

d-i passwd/username string user
d-i passwd/username seen true
d-i passwd/user-password password 1234
d-i passwd/user-password-again password 1234
d-i passwd/user-password seen true
d-i passwd/auto-login boolean true
d-i user-setup/allow-password-weak boolean true

Thank you in advance for the answers.

  • Could the issue be related to the command generating the .iso file with the command "mkisofs -U -A "Desktop" -V "Desktop" -volset "Desktop" -J -joliet-long -r -v -T -o /opt/Desktop.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot /opt/desktop". This makes iso file to to boot from first from efi device(usb stick) and then mbr? Could it tbe that the mbr doesn't hold the preseed values? – Ghostii Jul 11 '17 at 5:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.