first commit
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
# Laeuft IM Container. Konfiguriert live-build, legt unsere Dateien ein und
|
||||
# baut die ISO. Ergebnis landet in /output (per Volume vom Host gemountet).
|
||||
set -euo pipefail
|
||||
|
||||
WORK=/work
|
||||
OUT=/output
|
||||
mkdir -p "$WORK" "$OUT"
|
||||
cd "$WORK"
|
||||
|
||||
echo "==> live-build konfigurieren"
|
||||
lb config \
|
||||
--distribution bookworm \
|
||||
--architectures amd64 \
|
||||
--binary-images iso-hybrid \
|
||||
--debian-installer none \
|
||||
--memtest none \
|
||||
--apt-indices false \
|
||||
--apt-recommends false \
|
||||
--archive-areas "main contrib non-free non-free-firmware" \
|
||||
--bootappend-live "boot=live components quiet noautologin"
|
||||
|
||||
echo "==> Paketlisten und Hooks einlegen"
|
||||
cp -r /src/config/package-lists/* config/package-lists/ 2>/dev/null || true
|
||||
mkdir -p config/hooks/normal
|
||||
cp -r /src/config/hooks/normal/* config/hooks/normal/ 2>/dev/null || true
|
||||
|
||||
echo "==> Anwendung in das Live-System einlegen (/opt/pc-unlocker)"
|
||||
mkdir -p config/includes.chroot/opt/pc-unlocker
|
||||
cp -r /src/app/* config/includes.chroot/opt/pc-unlocker/
|
||||
|
||||
echo "==> ISO bauen (kann je nach Netzwerk einige Minuten dauern)"
|
||||
lb build
|
||||
|
||||
echo "==> Ergebnis nach ${OUT} kopieren"
|
||||
ISO=$(ls -1 *.iso | head -n1)
|
||||
cp -v "$ISO" "$OUT/pc-unlocker.iso"
|
||||
echo "==> Fertig: ${OUT}/pc-unlocker.iso"
|
||||
Reference in New Issue
Block a user