Jahres-Reimage: Boot-Check, GRUB-Eintrag, Clonezilla-Batch-Skript

reimage-check erkennt die Platte DEZNTRSICHERUNG mit neuerem Image und
bootet in den GRUB-Eintrag Schul-Neuinstallation (Clonezilla toram).
schul-reimage.sh: Mini-Menue (AUFSPIELEN auto nach 20 s / IMAGE ERSTELLEN /
Abbrechen), ocs-sr im Batch-Modus ohne Nachpruefung (E-004), Hostname
bleibt erhalten, Admin-Key nur auf laptop03 (E-005). local.yml haelt
alles per Pull aktuell.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 13:21:32 +02:00
parent 78b8e68f9f
commit 72d0b11647
5 changed files with 244 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Schul-Laptops: Pruefen ob ein neues Image aufgespielt werden soll
[Service]
Type=oneshot
# USB-Platte braucht einen Moment, bis sie erkannt ist
ExecStartPre=/bin/sleep 5
ExecStart=/usr/local/bin/reimage-check.sh
[Install]
WantedBy=multi-user.target