setup.sh rief bisher alles in einem Skript auf, was in der Autoinstall-ISO (curtin in-target/chroot) teilweise fehlschlaegt: xfconf-query, npm, oh-my-zsh, PrusaSlicer brauchen eine laufende Desktop-Session. Neuer Aufbau: - setup-base.sh: Pakete, Configs, Locale, Services (laeuft in chroot) - setup-desktop.sh: oh-my-zsh, Claude Code, PrusaSlicer, Dotfiles, XFCE-Einstellungen (laeuft beim ersten Desktop-Login) - setup.sh: Wrapper fuer Option A (manuelles curl | bash nach Install) user-data ruft jetzt setup-base.sh in late-commands auf und richtet einen XFCE-Autostart fuer setup-desktop.sh beim ersten Login ein. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
1.3 KiB
Text
32 lines
1.3 KiB
Text
#cloud-config
|
|
autoinstall:
|
|
version: 1
|
|
locale: de_DE.UTF-8
|
|
keyboard:
|
|
layout: de
|
|
variant: mac
|
|
identity:
|
|
hostname: macbook
|
|
username: rene
|
|
# Passwort mit `mkpasswd -m sha-512 PASSWORT` generieren und hier ersetzen:
|
|
password: "$6$CHANGEME$CHANGEME"
|
|
ssh:
|
|
install-server: false
|
|
storage:
|
|
layout:
|
|
name: lvm
|
|
late-commands:
|
|
# System-Setup in chroot (Pakete, Configs, Locale, Services)
|
|
- curtin in-target --target=/target -- bash -c 'curl -fsSL https://git.motocamp.de/rene/macbook-setup/raw/branch/main/setup-base.sh | bash -s -- 13'
|
|
# Desktop-Setup als Firstboot-Autostart einrichten
|
|
- curtin in-target --target=/target -- mkdir -p /home/rene/.config/autostart
|
|
- curtin in-target --target=/target -- bash -c 'cat > /home/rene/.config/autostart/macbook-setup-desktop.desktop <<AUTOSTART
|
|
[Desktop Entry]
|
|
Type=Application
|
|
Name=MacBook Setup Desktop
|
|
Exec=bash -c "curl -fsSL https://git.motocamp.de/rene/macbook-setup/raw/branch/main/setup-desktop.sh | bash 2>&1 | tee /tmp/setup-desktop.log; exec xfce4-terminal -e \"bash -c less /tmp/setup-desktop.log\""
|
|
Hidden=false
|
|
X-GNOME-Autostart-enabled=true
|
|
AUTOSTART'
|
|
- curtin in-target --target=/target -- chown -R 1000:1000 /home/rene/.config
|
|
# Fuer MBP 16": oben "13" durch "16" ersetzen
|