The preseeding we use is: # DPHYS preseeding # based on the Debian wheezy example with additions for squeeze, precise, etc.
# NOTE: only one space between key type and value unless it is OK for # the value to start with white space # common between squeeze, precise, wheezy, etc. d-i debian-installer/locale string en_US.UTF-8 d-i keyboard-configuration/xkb-keymap select us # NOTE: netcfg settings in a preseeding file are ignored # when the preseeding is fetched via URL # netcfg has to be done as a kernel parameter (PXE) d-i netcfg/choose_interface select auto 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/link_wait_timeout string 10 d-i mirror/country string manual d-i mirror/http/proxy string d-i clock-setup/utc boolean true d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string time1.phys.ethz.ch d-i time/zone string Europe/Zurich d-i passwd/make-user boolean false d-i passwd/root-login boolean true # create with: echo secret-password | mkpasswd -s -m md5 d-i passwd/root-password-crypted password $1$SOMEDIFFERENTLETTERS nslcd nslcd/ldap-uris string ldap://ldap1.phys.ethz.ch ldap://ldap2.phys.ethz.ch ldap://ldap3.phys.ethz.ch nslcd nslcd/ldap-base string dc=phys,dc=ethz,dc=ch nslcd nslcd/ldap-auth-type select none nslcd nslcd/ldap-reqcert select allow libnss-ldapd libnss-ldapd/nsswitch multiselect passwd, group, hosts, networks, ethers, protocols, services, netgroup postfix postfix/main_mailer_type select No configuration tasksel tasksel/first multiselect standard d-i apt-setup/services-select multiselect security d-i pkgsel/include string ssh pidentd d-i pkgsel/upgrade select full-upgrade d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean false # now via disc detection #d-i grub-installer/bootdev string /dev/sda d-i grub-installer/make_active boolean true d-i grub-installer/grub2_instead_of_grub_legacy boolean true d-i finish-install/reboot_in_progress note d-i grub2/linux_cmdline_default string splash d-i preseed/late_command string \ wget http://debian.phys.ethz.ch/d-i/late-command -O /target/root/late-command; \ chmod +x /target/root/late-command; \ chroot /target /root/late-command; \ sync; # disc detection # - wenn nur eine Festplatte erkannt wird dann nimm diese # - ansonsten greift elif wo wir nach Partitionen suchen # - fallback ist sda d-i partman/early_command string \ if [ "$(list-devices disk | head -1 | sed 's:/dev/::')" = "nvme0n1" ];\ then my_install_disk=$(list-devices disk | head -1 | sed 's:/dev/::');\ debconf-set partman-auto/disk /dev/${my_install_disk};\ debconf-set grub-installer/bootdev /dev/${my_install_disk};\ elif [ "$(list-devices disk | wc -l)" -le "1" ];\ then my_install_disk=$(list-devices disk | head -1 | sed 's:/dev/::' | sed 's:[0-9]::');\ debconf-set partman-auto/disk /dev/${my_install_disk};\ debconf-set grub-installer/bootdev /dev/${my_install_disk};\ elif [ "$(list-devices disk | wc -l)" -ge "2" ];\ then my_install_disk=$(list-devices partition | head -1 | sed 's:/dev/::' | sed 's:[0-9]::') ;\ debconf-set partman-auto/disk /dev/${my_install_disk};\ debconf-set grub-installer/bootdev /dev/${my_install_disk};\ else\ my_install_disk="sda";\ debconf-set partman-auto/disk /dev/${my_install_disk};\ debconf-set grub-installer/bootdev /dev/${my_install_disk};\ fi; # automatic partitioning with LVM d-i partman-lvm/device_remove_lvm boolean true d-i partman-auto/method string lvm d-i partman-auto/purge_lvm_from_device boolean true # now via disc detection #d-i partman-auto/disk string /dev/sda d-i partman-auto-lvm/new_vg_name string vg0 d-i partman-basicfilesystems/choose_label string gpt d-i partman-basicfilesystems/default_label string gpt d-i partman-partitioning/choose_label string gpt d-i partman-partitioning/default_label string gpt d-i partman/choose_label string gpt d-i partman/default_label string gpt d-i partman-auto/choose_recipe select dphys-ws-part d-i partman-auto/expert_recipe string \ dphys-ws-part :: \ # min prio max 100 100 100 free $iflabel{ gpt } $reusemethod{ } method{ efi } format{ } . \ 256 40 256 fat32 $primary{ } $lvmignore{ } method{ efi } format{ } . \ 4096 100000000 -1 lvm $primary{ } $defaultignore{ } method{ lvm } vg_name{ vg0 } . \ 1024 1024 1024 ext4 $lvmok{ } in_vg{ vg0 } lv_name{ boot } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /boot } . \ 2048 40960 40960 ext4 $lvmok{ } in_vg{ vg0 } lv_name{ root } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } . \ 256 2000 10240 btrfs $lvmok{ } in_vg{ vg0 } lv_name{ data } method{ format } format{ } use_filesystem{ } filesystem{ btrfs } mountpoint{ /export/data1 } . \ 256 3000 20480 btrfs $lvmok{ } in_vg{ vg0 } lv_name{ scr } method{ format } format{ } use_filesystem{ } filesystem{ btrfs } mountpoint{ /scratch } . \ 256 4000 5120 btrfs $lvmok{ } in_vg{ vg0 } lv_name{ tmp } method{ format } format{ } use_filesystem{ } filesystem{ btrfs } mountpoint{ /tmp } . \ 10240 40960 61440 btrfs $lvmok{ } in_vg{ vg0 } lv_name{ opt } method{ format } format{ } use_filesystem{ } filesystem{ btrfs } mountpoint{ /opt } . \ 1 1000 -1 xfs $lvmok{ } in_vg{ vg0 } lv_name{ dummy } method{ dont_use } . d-i partman-basicfilesystems/no_swap boolean false d-i partman-auto-lvm/no_boot boolean true d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm_nooverwrite boolean true d-i partman-md/device_remove_md boolean true d-i partman-md/confirm boolean true d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i partman/choose_partition select finish d-i partman-partitioning/confirm_write_new_label boolean true # only for efi d-i partman-efi/non_efi_system boolean true d-i debian-installer/add-kernel-opts string lvmwait=/dev/vg0/root elevator=noop # distribution specific: Ubuntu popularity-contest popularity-contest/participate boolean false d-i mirror/http/hostname string ubuntu.ethz.ch d-i mirror/http/directory string /ubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1769044 Title: Ubunut 18.04 d-i preseeded installer hangs at 66 % of update-grub... To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1769044/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
