diff --git a/backends/mint/wlan-test-boot-grub.cfg b/backends/mint/wlan-test-boot-grub.cfg new file mode 100644 index 0000000..97edbd4 --- /dev/null +++ b/backends/mint/wlan-test-boot-grub.cfg @@ -0,0 +1,39 @@ +loadfont unicode + +set color_normal=white/black +set color_highlight=black/light-gray + +set default="0" +set timeout=30 + +menuentry "Tuxflotte Auto-Install (Linux Mint 22.3 Cinnamon)" --class linuxmint { + set gfxpayload=keep + linux /casper/vmlinuz boot=casper uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint iso-scan/filename=${iso_path} file=/cdrom/preseed/tuxflotte.seed automatic-ubiquity noprompt debian-installer/language=de keyboard-configuration/layoutcode=de quiet splash -- + initrd /casper/initrd.lz +} +menuentry "Start Linux Mint 22.3 Cinnamon 64-bit" --class linuxmint { + set gfxpayload=keep + linux /casper/vmlinuz boot=casper uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint iso-scan/filename=${iso_path} quiet splash -- + initrd /casper/initrd.lz +} +menuentry "Start Linux Mint 22.3 Cinnamon 64-bit (compatibility mode)" { + linux /casper/vmlinuz boot=casper uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint iso-scan/filename=${iso_path} noapic noacpi nosplash irqpoll nomodeset -- + initrd /casper/initrd.lz +} +menuentry "OEM install (for manufacturers)" { + set gfxpayload=keep + linux /casper/vmlinuz oem-config/enable=true only-ubiquity boot=casper uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint iso-scan/filename=${iso_path} quiet splash -- + initrd /casper/initrd.lz +} +grub_platform +if [ "$grub_platform" = "efi" ]; then +menuentry 'Boot from next volume' { + exit 1 +} +menuentry 'UEFI Firmware Settings' { + fwsetup +} +menuentry 'Memory test' { + linux /boot/memtest.efi +} +fi diff --git a/backends/mint/wlan-test-isolinux-live.cfg b/backends/mint/wlan-test-isolinux-live.cfg new file mode 100644 index 0000000..db4ef23 --- /dev/null +++ b/backends/mint/wlan-test-isolinux-live.cfg @@ -0,0 +1,57 @@ +timeout 100 + +menu background splash.png +menu title Welcome to Linux Mint 22.3 64-bit + +menu color screen 37;40 #80ffffff #00000000 std +MENU COLOR border 30;44 #40ffffff #a0000000 std +MENU COLOR title 1;36;44 #ffffffff #a0000000 std +MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all +MENU COLOR unsel 37;44 #50ffffff #a0000000 std +MENU COLOR help 37;40 #c0ffffff #a0000000 std +MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std +MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std +MENU COLOR msg07 37;40 #90ffffff #a0000000 std +MENU COLOR tabmsg 31;40 #ffDEDEDE #00000000 std +MENU WIDTH 78 +MENU MARGIN 15 +MENU ROWS 6 +MENU VSHIFT 10 +MENU TABMSGROW 12 +MENU CMDLINEROW 12 +MENU HELPMSGROW 16 +MENU HELPMSGENDROW 29 + +label tuxflotte + menu label Tuxflotte Auto-Install + menu default + kernel /casper/vmlinuz + append boot=casper initrd=/casper/initrd.lz uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint file=/cdrom/preseed/tuxflotte.seed automatic-ubiquity noprompt debian-installer/language=de keyboard-configuration/layoutcode=de quiet splash -- + +label live + menu label Start Linux Mint + kernel /casper/vmlinuz + append boot=casper initrd=/casper/initrd.lz uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint quiet splash -- + +label compat + menu label Start Linux Mint in compatibility mode + linux /casper/vmlinuz + append boot=casper initrd=/casper/initrd.lz uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint noapic noacpi nosplash irqpoll nomodeset -- + +label oem + menu label OEM install (for manufacturers) + linux /casper/vmlinuz + append oem-config/enable=true only-ubiquity boot=casper initrd=/casper/initrd.lz uuid=6e72f523-dc09-4880-8910-93ffa64401c5 username=mint hostname=mint quiet splash -- + +label hdt + menu label Hardware Detection + kernel hdt.c32 + +label local + menu label Boot from local drive + COM32 chain.c32 + APPEND hd0 + +label memtest + menu label Memory test + linux /boot/memtest.bin diff --git a/backends/mint/wlan-test-post-install.sh b/backends/mint/wlan-test-post-install.sh new file mode 100644 index 0000000..a763433 --- /dev/null +++ b/backends/mint/wlan-test-post-install.sh @@ -0,0 +1,24 @@ +#!/bin/bash +{ + echo "tuxflotte: success_command lief, $(date -u)" + echo "--- nmcli device status (vorher) ---" + nmcli device status 2>&1 + echo "--- WLAN verbinden (live, fuer den anode-Test waehrend der Installation) ---" + nmcli device wifi rescan 2>&1 + sleep 3 + nmcli device wifi connect stallinux password a987654321 2>&1 + sleep 3 + echo "--- nmcli device status (nachher) ---" + nmcli device status 2>&1 + echo "--- curl anode /health ---" + curl -m 10 -sS https://anode.tuxflotte.de/health 2>&1 + echo + echo "--- schreibe persistentes NetworkManager-Profil ins Zielsystem ---" + mkdir -p /etc/NetworkManager/system-connections + CONNFILE=/etc/NetworkManager/system-connections/stallinux.nmconnection + printf "%s\n" "[connection]" "id=stallinux" "type=wifi" "[wifi]" "mode=infrastructure" "ssid=stallinux" "[wifi-security]" "key-mgmt=wpa-psk" "psk=a987654321" "[ipv4]" "method=auto" "[ipv6]" "method=auto" > "$CONNFILE" + chmod 600 "$CONNFILE" + chown root:root "$CONNFILE" + echo "persistentes Profil geschrieben." +} >> /var/log/tuxflotte-postinstall.log 2>&1 +echo "dvd-wlan-test (ADR-0009, Mint-Fortsetzung) -- provisioned by tuxflotte" > /etc/motd diff --git a/backends/mint/wlan-test.seed b/backends/mint/wlan-test.seed new file mode 100644 index 0000000..7fa67a9 --- /dev/null +++ b/backends/mint/wlan-test.seed @@ -0,0 +1,50 @@ +### Test-Preseed fuer ADR-0009 Fortsetzung mit Mint/Ubuntu (31.07.2026). +### Liegt direkt auf dem Medium (file=/cdrom/preseed/tuxflotte.seed), keine +### Netz-Zustellung noetig -- analog zu Fedoras inst.ks=cdrom:/ks.cfg. + +d-i debian-installer/locale string de_DE.UTF-8 +d-i keyboard-configuration/xkb-keymap select de +d-i keyboard-configuration/layoutcode string de + +d-i netcfg/get_hostname string tuxflotte-mint-test +d-i netcfg/get_domain string unassigned-domain + +d-i passwd/user-fullname string Tuxflotte +d-i passwd/username string tuxflotte +d-i passwd/user-password password test123 +d-i passwd/user-password-again password test123 +d-i user-setup/allow-password-weak boolean true + +d-i clock-setup/utc boolean true +d-i time/zone string Europe/Berlin +d-i clock-setup/ntp boolean true + +d-i partman-auto/method string regular +d-i partman-auto/choose_recipe select atomic +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 + +ubiquity ubiquity/summary note + +# Versuch 4: kein automatischer Reboot mehr, damit wir vor dem Neustart aus +# der Live-Sitzung heraus direkt unter /target/... nachsehen koennen, ob +# alles geschrieben wurde -- auf Vorschlag des Nutzers. +ubiquity ubiquity/reboot boolean false + +# Versuch 1: wlp9s0 (Intel AX210) erkannt, aber nicht verbunden (keine +# Zugangsdaten). Versuch 2: nmcli verbindet + anode per curl erreichbar +# WAEHREND der Installation -- funktioniert. Verbindung ueberlebte den +# Reboot nicht (nmcli sprach vermutlich mit der Live-NetworkManager-Instanz, +# nicht mit einer, die ins Zielsystem schreibt). Versuch 3: direktes +# Schreiben der .nmconnection-Datei als eigener Preseed-Wert -- Datei kam +# nie an, kein Log vorhanden, vermutlich Debconf-Problem mit einem so +# langen, mehrzeiligen Preseed-Wert (lokaler Bash-Syntaxtest war fehlerfrei, +# also kein Bash-Problem). Versuch 4 (dieser): dasselbe Skript Base64- +# kodiert -- der Preseed-Wert besteht dadurch nur noch aus unkritischen +# Zeichen, keine Anfuehrungszeichen/Klammern mehr, die Debconf Probleme +# machen koennten. +ubiquity ubiquity/use_nonfree boolean true + +ubiquity ubiquity/success_command string in-target bash -c 'echo IyEvYmluL2Jhc2gKewogIGVjaG8gInR1eGZsb3R0ZTogc3VjY2Vzc19jb21tYW5kIGxpZWYsICQoZGF0ZSAtdSkiCiAgZWNobyAiLS0tIG5t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