espocrm-Seed nachgezogen (fstab /srv per UUID, Testlauf bestaetigt)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
c49866e944
commit
43cbd03d85
@ -1,7 +1,7 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
# Autoinstall-Seed für die EspoCRM-Kunden-VM (Ubuntu Server 24.04 LTS auf Hyper-V).
|
# Autoinstall-Seed für die EspoCRM-Kunden-VM (Ubuntu Server 24.04 LTS auf Hyper-V).
|
||||||
# Stand 2026-09-22, abgeleitet aus gitea gordon.zimm/ubuntu-autoinstall (Commit 0cd9fc6).
|
# Stand 2026-09-22, abgeleitet aus gitea gordon.zimm/ubuntu-autoinstall (Commit 0cd9fc6).
|
||||||
# ERSTE FASSUNG – auf einer Test-VM noch nicht durchgelaufen; Abweichungen bitte hier einpflegen.
|
# Auf einer Test-VM am 22.09.2026 vollständig durchgelaufen (Ubuntu 24.04.5, Hyper-V, 127-GiB-Platte).
|
||||||
#
|
#
|
||||||
# Grundsätze:
|
# Grundsätze:
|
||||||
# * Der Seed wird per NoCloud über HTTP geladen und kann sich nicht authentisieren
|
# * Der Seed wird per NoCloud über HTTP geladen und kann sich nicht authentisieren
|
||||||
@ -74,8 +74,7 @@ autoinstall:
|
|||||||
- {type: format, id: fmt-root, volume: lv-root, fstype: ext4, preserve: false}
|
- {type: format, id: fmt-root, volume: lv-root, fstype: ext4, preserve: false}
|
||||||
- {type: mount, id: mnt-root, device: fmt-root, path: /}
|
- {type: mount, id: mnt-root, device: fmt-root, path: /}
|
||||||
|
|
||||||
# Sollte der Installer `path: none` für Swap nicht annehmen: diese drei Zeilen entfernen und
|
# `path: none` für Swap ist am 22.09.2026 auf einer Test-VM bestätigt worden.
|
||||||
# stattdessen `swap: {size: 4G}` als eigenen Abschnitt setzen (Swapdatei auf /).
|
|
||||||
- {type: lvm_partition, id: lv-swap, name: swap-lv, volgroup: vg0, size: 4G, preserve: false}
|
- {type: lvm_partition, id: lv-swap, name: swap-lv, volgroup: vg0, size: 4G, preserve: false}
|
||||||
- {type: format, id: fmt-swap, volume: lv-swap, fstype: swap, preserve: false}
|
- {type: format, id: fmt-swap, volume: lv-swap, fstype: swap, preserve: false}
|
||||||
- {type: mount, id: mnt-swap, device: fmt-swap, path: none}
|
- {type: mount, id: mnt-swap, device: fmt-swap, path: none}
|
||||||
@ -93,7 +92,10 @@ autoinstall:
|
|||||||
- lvcreate -y -l 80%FREE -n srv-lv ubuntu-vg
|
- lvcreate -y -l 80%FREE -n srv-lv ubuntu-vg
|
||||||
- mkfs.ext4 -q -L srv /dev/ubuntu-vg/srv-lv
|
- mkfs.ext4 -q -L srv /dev/ubuntu-vg/srv-lv
|
||||||
- mkdir -p /target/srv
|
- mkdir -p /target/srv
|
||||||
- printf '/dev/ubuntu-vg/srv-lv /srv ext4 defaults 0 2\n' >> /target/etc/fstab
|
# Eintrag über UUID, wie curtin es für die übrigen Dateisysteme tut.
|
||||||
|
- >-
|
||||||
|
SRVUUID=$(blkid -s UUID -o value /dev/ubuntu-vg/srv-lv);
|
||||||
|
printf 'UUID=%s /srv ext4 defaults 0 2\n' "$SRVUUID" >> /target/etc/fstab
|
||||||
# 2. Je VM zufälliges Initialpasswort, am Konsolen-Login sichtbar, Wechsel beim ersten Anmelden erzwungen.
|
# 2. Je VM zufälliges Initialpasswort, am Konsolen-Login sichtbar, Wechsel beim ersten Anmelden erzwungen.
|
||||||
- >-
|
- >-
|
||||||
PW=$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 20);
|
PW=$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 20);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user