Hi Leute,
ich installiere Ubuntu 20.04 automatisch via einer Preseed-File über einen USB-Stick. Leider habe ich da zwei Schwierigkeiten. Zum einen läuft die Installation nicht voll automatisch. Bei der Sprachauswahl muss ich auf "Weiter" klicken. Das ist zwar nicht so wild, aber durchaus nervig. Zum anderen stimmt irgendetwas mit Grub nicht. Ich verwende zum Testen einen mittelalten HP-Laptop. Secure Boot ist deaktiviert und die Bootoption ist: Hybrid UEFI (mit csm). Folgendes wird mir beim Start angezeigt:
System BootOrder not found. Initializing defaults. Creating boot entry "Boot0011" with label "ubuntu" for the file "\EFI\ubuntu\shimx64.efi"
Dann startet er ganz normal. Hier nochmal die Preseed-File (wird sowieso nochmal verbessert):
##Preseed Boot Ubuntu 20.04 LTS ### Automatic Installation d-i auto-install/enable boolean true d-i debconf/priority select critical ### Localization d-i debian-installer/locale string de_DE.UTF-8 d-i localechooser/supported-locales multiselect de_DE.utf8 ### Keyboard d-i keyboard-configuration/xkb-keymap select de ### Network (Skip) # (Skip) d-i netcfg/enable boolean false #manuell konfigurieren #d-i netcfg/disable_autoconfig boolean true ### Disable network configuration entirely. This is useful for cdrom ### installations on non-networked devices where the network questions, ### warning and long timeouts are a nuisance. d-i netcfg/enable boolean false ### Mirror settings d-i mirror/http/mirror select de.archive.ubuntu.com ### Account setup ## Rootpassword aktivate d-i passwd/root-login boolean true ## Rootpassword (not encrypted) d-i passwd/root-password password xxxx d-i passwd/root-password-again password xxxx ## Create User (not encrypted) d-i passwd/user-fullname string Vorname Nachname d-i passwd/username string note d-i passwd/user-password password xxxx d-i passwd/user-password-again password xxxx ## Schwaches Password Warnung d-i user-setup/allow-password-weak boolean true ### Encrypt home directory (true/false) d-i user-setup/encrypt-home boolean false ### Clock d-i clock-setup/utc boolean true d-i time/zone string Europe/Berlin ### Partitioning (not encrypted) ## case: system hasn't free space d-i partman-auto/init_automatically_partition select biggest_free d-i partman-auto/disk string /dev/sda ## crypto with preseeded passphrase d-i partman-auto/method string crypto d-i partman-crypto/passphrase password xxxxx d-i partman-crypto/passphrase-again password xxxxx ## ignore warnings d-i partman-lvm/device_remove_lvm boolean true d-i partman-md/device_remove_md boolean true d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm_nooverwrite boolean true ## full volume d-i partman-auto-lvm/guided_size string max ## name d-i partman-auto-lvm/new_vg_name string vg-workstation ## partitioning recipe: ## this creates a small /boot partition, suitable ## swap, and uses the rest of the space for the root partition. d-i partman-auto/choose_recipe select custom-lvm d-i partman-auto/expert_recipe string \ custom-lvm :: \ 538 538 1075 free $iflabel{ gpt } $reusemethod{ } \ method{ efi } \ format{ } \ . \ 500 500 500 ext4 $primary{ } $bootable{ } \ mountpoint{ /boot } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ . \ 10240 20480 40960 ext4 $lvmok{ } \ mountpoint{ / } \ lv_name{ root } \ in_vg { vg-workstation } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ . \ 10240 40960 1000000 ext4 $lvmok{ } \ mountpoint{ /home } \ lv_name{ home } \ in_vg { vg-workstation } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext4 } \ . \ 4096 8192 200% linux-swap $lvmok{ } \ lv_name{ swap } \ in_vg { vg-workstation } \ method{ swap } \ format{ } \ . d-i partman/default_filesystem string ext4 ## 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 ### Install Grub d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true ### Package selection # Install the Ubuntu Desktop tasksel tasksel/first multiselect ubuntu-desktop ### Language pack selection d-i pkgsel/language-packs multiselect de # Verbose output and no boot splash screen. d-i debian-installer/quiet boolean false d-i debian-installer/splash boolean false # Avoid 'install complete' message d-i finish-install/reboot_in_progress note # auto. Reboot d-i finish-install/reboot_in_progress note
Danke erstmal!