Hallo liebe Leut und Gruß !
Ich wünsche der Community einen schönen Tag als Noob hier im Forum und freue mich, meine erste Frage hier zu stellen ☺
Also, nach einer 10-jährigen Pause bin ich wieder tiefer in den Bereich Linux eingestiegen und habe zur Zeit die Aufgabe eine automatisierte Installation bereit zu stellen. Soweit so gut, mit Hilfe von Cubic klappt das eigentlich ganz gut und ich hab relativ fix brauchbare Ergebnisse erzielt. Ich hab auhc einen Kollegen der auch schon Erfahrungen damit gesammelt hat, aber auf Debian-Basis in einer anderen Umgebung. Die Preseed-Angaben daraus konnte ich größtenteils verwenden, teils aber auch nicht. Die große, derzeit nervige Aufgabe ist es, die nervigen Nachfragen zu Tastatur und Installationssprache wegzubekommen. Das hat auch schon teilweise funktioniert, taucht aber jetzt immer wieder auf. Mit
1 2 | debconf-get-selections --installer > file debconf-get-selections >> file |
Komme ich leider nicht weiter.
Eine große Fehlerquelle könnte auch sein, dass ich in der Grub-Konfiguration "pfusche", indem ich in beiden Dateien im Cubic wiederum die Installer-Optionen eintrage und nach dem trial-and-error Prinzip versuche weiterzukommen. Hier muss ich zugeben, merke ich einfach die Lücke der letzten Jahre.
Daher würde ich euch darum bitten, mal über meine Configs zu gucken, wo ich das noch optimieren kann/muss oder auch wo ich kompletten Lötzinn reingeschrieben habe. Es kann ja nichts mehr dramatisches sein, da sonst alles notwendige funktioniert.
Schonmal vielen Dank für die Hilfe und Gruß
Die Preseed-Datei (beaver.seed) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | # The Beaver Preseed # Test 27.01.2020 15:35 ### Unattended Installation d-i auto-install/enable boolean true #d-i debconf/priority select critical d-i debian-installer/quiet boolean false #### Locales d-i debian-installer/language string de d-i debian-installer/country string DE d-i debian-installer/locale string de_DE d-i localechooser/supported-locales multiselect de_DE en_US d-i localechooser/preferred-locale string de_DE d-i locales/locales_to_be_generated multiselect de_DE en_US ### Console/Keyboard d-i console-setup/ask_detect boolean false d-i console-tools/archs select de d-i console-keymaps-at/keymap select de d-i console-setup/modelcode string pc105 d-i console-setup/variantcode string nodeadkeys d-i keyboard-configuration/xkb-keymap select de d-i keyboard-configuration/layoutcode string de d-i keyboard-configuration/variantcode string nodeadkeys d-i keyboard-configuration/unsupported_config_options boolean true d-i keyboard-configuration/altgr select The default for the keyboard layout d-i keyboard-configuration/unsupported_options boolean true d-i keyboard-configuration/toggle select No toggling d-i keyboard-configuration/modelcode string pc105 d-i keyboard-configuration/unsupported_config_layout boolean true d-i keyboard-configuration/unsupported_layout boolean true d-i keyboard-configuration/model select pc105 d-i keyboard-configuration/optionscode string d-i keyboard-configuration/layout select Deutsch #d-i keyboard-configuration/compose select No compose key d-i keyboard-configuration/variant select nodeadkeys ### Network Config d-i netcfg/get_hostname string beaver d-i netcfg/get_domain string beaver.bla.blubb.de d-i netcfg/link_wait_timeout string 3 d-i netcfg/get_nameservers string 1.1.1.1 9.9.9.9 d-i netcfg/dhcp_timeout string 5 #d-i netcfg/dhcpv6_timeout string 1 d-i netcfg/enable boolean true d-i netcfg/choose_interface select auto # Static network configuration. # # IPv4 example #d-i netcfg/get_ipaddress string 192.168.1.42 #d-i netcfg/get_netmask string 255.255.255.0 #d-i netcfg/get_gateway string 192.168.1.1 #d-i netcfg/confirm_static boolean true ### Mirror settings d-i mirror/suite string bionic d-i mirror/country string de d-i mirror/http/hostname string einmirror.de d-i mirror/http/mirror select einmirror.de d-i mirror/http/directory string /ubuntu d-i mirror/http/proxy string http://einproxy:3129 ### Base system installation d-i base-installer/install-recommends boolean true #d-i base-installer/kernel/image string linux-generic d-i debconf debconf/frontend select Noninteractive popularity-contest popularity-contest/participate boolean false #d-i pkgsel/updatedb boolean true # APT Config #d-i apt-setup/universe boolean true #d-i apt-setup/services-select multiselect security, updates #d-i apt-setup/security_host string security.ubuntu.com #d-i apt-setup/security_path string /ubuntu ### Package selection d-i tasksel/first multiselect standard d-i pkgsel/language-packs multiselect de d-i pkgsel/install-language-support boolean true #d-i pkgsel/upgrade select full-upgrade #d-i pkgsel/update-policy select unattended-upgrades # Individual additional packages to install d-i pkgsel/include string openssh-server \ vim \ git \ openssh-server \ wget \ curl \ python \ htop \ nano \ tree \ open-vm-dkms \ open-vm-tools ### Partition # You can choose one of the three predefined partitioning recipes: # - atomic: all files in one partition # - home: separate /home partition # - multi: separate /home, /var, and /tmp partitions 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 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 d-i partman-auto/method string lvm d-i partman/default_filesystem string ext4 # Maxium Space on first disk d-i partman-auto-lvm/guided_size string max ### Timeservers d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string ntp.irgendwo.de d-i clock-setup/utc boolean false d-i time/zone string EU/Berlin ### First Installation User d-i passwd/user-fullname string beaver d-i passwd/username string beaver d-i passwd/user-password-crypted password $6$T3XbPShe459z1j$..... d-i passwd/user-password-crypted-again password $6$T3XbPShe459z1j.... # apt-install whois && mkpasswd -m sha-512 ### Bootloader/GRUB d-i grub-installer/only_debian boolean true #d-i grub-installer/with_other_os boolean false d-i grub-installer/bootdev string default ### Post-Install d-i finish-install/reboot_in_progress note #d-i debian-installer/exit/poweroff boolean true |
Die /boot/grub/grub.cfg :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | 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 default=0 set timeout=5 menuentry "Install Beaver" { set gfxpayload=keep linux /install/vmlinuz boot=casper boot=casper file=/cdrom/preseed/beaver.seed auto=true debug languagechooser/language-name=Deutsch countrychooser/shortlist=DE console-keymaps-at/keymap=de debian-installer/language=de debian-installer/country=DE debian-installer/locale=de_DE.UTF-8 UTF-8 console-setup/ask_detect=false keyboard-configuration/xkb-keymap=de console-setup/layoutcode=de keyboard-configuration/layout=de localechooser/preferred-locale=de_DE ipv6.disable=1 vga=791 initrd /install/initrd.gz } |
Und die /isolinux/txt.cfg :
1 2 3 4 5 | default install label install menu label ^Install Beaver kernel /install/vmlinuz append boot=casper file=/cdrom/preseed/beaver.seed languagechooser/language-name=Deutsch countrychooser/shortlist=DE console-keymaps-at/keymap=de debian-installer/language=de debian-installer/country=DE debian-installer/locale=de_DE.UTF-8 UTF-8console-setup/ask_detect=false keyboard-configuration/xkb-keymap=de console-setup/layoutcode=de keyboard-configuration/layout=de localechooser/preferred-locale=de_DE vga=791 initrd=/install/initrd.gz |