From 8a2fe1b8dd384aa566f327c045e627eb0b4a286f Mon Sep 17 00:00:00 2001 From: Puechberty Arthur Date: Wed, 29 Jul 2026 16:45:37 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20de=20la=20prise=20en=20charge=20des=20s?= =?UTF-8?q?cripts=20personnalis=C3=A9s=20dans=20le=20syst=C3=A8me=20live?= =?UTF-8?q?=20et=20suppression=20du=20paquet=20hello-custom=20de=20la=20li?= =?UTF-8?q?ste=20des=20paquets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 8 ++++++-- packages.x86_64 | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 93a9ca3..90907a7 100755 --- a/build.sh +++ b/build.sh @@ -114,8 +114,12 @@ rm -rf offline_cache # Copier les scripts personnalisés dans la racine du live system si nécessaire mkdir -p airootfs/usr/local/bin -cp custom-pkgs/hello-custom/hello-custom.sh airootfs/usr/local/bin/hello-custom 2>/dev/null || true -chmod +x airootfs/usr/local/bin/hello-custom 2>/dev/null || true +for script in custom-pkgs/*/*.sh; do + [ -f "$script" ] || continue + script_name="$(basename "$script")" + target_name="${script_name%.sh}" + install -Dm0755 "$script" "airootfs/usr/local/bin/$target_name" +done # --- CRÉATION DE L'ISO --- echo "[6/6] Building ISO (this will take a while)..." diff --git a/packages.x86_64 b/packages.x86_64 index 1530fb3..b519f73 100644 --- a/packages.x86_64 +++ b/packages.x86_64 @@ -126,4 +126,3 @@ xdg-utils xfsprogs xl2tpd zsh -hello-custom