mirror of
https://github.com/arthur-pbty/arch-custom-iso.git
synced 2026-08-01 20:28:05 +02:00
ajout de la prise en charge des scripts personnalisés dans le système live et suppression du paquet hello-custom de la liste des paquets
This commit is contained in:
@@ -114,8 +114,12 @@ rm -rf offline_cache
|
|||||||
|
|
||||||
# Copier les scripts personnalisés dans la racine du live system si nécessaire
|
# Copier les scripts personnalisés dans la racine du live system si nécessaire
|
||||||
mkdir -p airootfs/usr/local/bin
|
mkdir -p airootfs/usr/local/bin
|
||||||
cp custom-pkgs/hello-custom/hello-custom.sh airootfs/usr/local/bin/hello-custom 2>/dev/null || true
|
for script in custom-pkgs/*/*.sh; do
|
||||||
chmod +x airootfs/usr/local/bin/hello-custom 2>/dev/null || true
|
[ -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 ---
|
# --- CRÉATION DE L'ISO ---
|
||||||
echo "[6/6] Building ISO (this will take a while)..."
|
echo "[6/6] Building ISO (this will take a while)..."
|
||||||
|
|||||||
@@ -126,4 +126,3 @@ xdg-utils
|
|||||||
xfsprogs
|
xfsprogs
|
||||||
xl2tpd
|
xl2tpd
|
||||||
zsh
|
zsh
|
||||||
hello-custom
|
|
||||||
|
|||||||
Reference in New Issue
Block a user