Divers améliorations
This commit is contained in:
0
files_to_inject/boot/grub/grub.cfg
Normal file → Executable file
0
files_to_inject/boot/grub/grub.cfg
Normal file → Executable file
0
files_to_inject/boot/grub/theme/logo.png
Normal file → Executable file
0
files_to_inject/boot/grub/theme/logo.png
Normal file → Executable file
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
0
files_to_inject/boot/grub/theme/yunohost
Normal file → Executable file
0
files_to_inject/boot/grub/theme/yunohost
Normal file → Executable file
0
files_to_inject/isolinux/menu.cfg
Normal file → Executable file
0
files_to_inject/isolinux/menu.cfg
Normal file → Executable file
0
files_to_inject/isolinux/splash.png
Normal file → Executable file
0
files_to_inject/isolinux/splash.png
Normal file → Executable file
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
56
files_to_inject/late_custom.sh
Executable file
56
files_to_inject/late_custom.sh
Executable file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set +e
|
||||||
|
trap '' ERR
|
||||||
|
|
||||||
|
# Supprimer le dépôt CD-ROM des sources APT (au tout début du script, dans l’OS installé)
|
||||||
|
sed -i '/cdrom:/d' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
|
||||||
|
find /etc/apt/sources.list.d/ -type f -size 0 -delete
|
||||||
|
|
||||||
|
# Configuration apt : non-interactif
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
export APT_LISTCHANGES_FRONTEND=none
|
||||||
|
|
||||||
|
# Filtre les warnings "W:" dans la sortie apt
|
||||||
|
filter_warn() { grep -v "^W:" || true; }
|
||||||
|
|
||||||
|
# Mettre à jour les sources sans afficher les warnings
|
||||||
|
apt-get update 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Installer les paquets de base nécessaires
|
||||||
|
apt-get install -y --no-install-recommends gpg dkms libdw-dev clang lld llvm flatpak linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Ajouter la clé et le dépôt XanMod
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
timeout 30 wget -qO /etc/apt/keyrings/xanmod-archive-keyring.gpg https://dl.xanmod.org/archive.key || true
|
||||||
|
echo 'deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org trixie main' > /etc/apt/sources.list.d/xanmod.list
|
||||||
|
|
||||||
|
# Ajouter la clé et le dépôt Kisak Mesa
|
||||||
|
timeout 30 gpg --keyserver keyserver.ubuntu.com --recv-keys EB8B81E14DA65431D7504EA8F63F0F2B90935439 || true
|
||||||
|
gpg --export EB8B81E14DA65431D7504EA8F63F0F2B90935439 > /etc/apt/trusted.gpg.d/kisak.gpg 2>/dev/null || true
|
||||||
|
echo 'deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu plucky main' > /etc/apt/sources.list.d/kisak-mesa.list
|
||||||
|
echo 'deb-src https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu plucky main' >> /etc/apt/sources.list.d/kisak-mesa.list
|
||||||
|
|
||||||
|
# Relancer la mise à jour des sources (pour les nouveaux dépôts)
|
||||||
|
apt-get update 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Installer le noyau XanMod
|
||||||
|
apt-get install -y linux-xanmod-x64v3 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Ajouter flathub à flatpak
|
||||||
|
timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo || true
|
||||||
|
|
||||||
|
# Supprimer Konqueror si présent
|
||||||
|
apt-get remove --purge -y konqueror 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Mettre le shell fish pour chaque utilisateur non root
|
||||||
|
for u in $(awk -F: '$3 >= 1000 && $3 < 65534 { print $1 }' /etc/passwd); do
|
||||||
|
chsh -s /usr/bin/fish $u 2>/dev/null || true
|
||||||
|
done
|
||||||
|
|
||||||
|
# Activer le support i386 et mettre le système à niveau
|
||||||
|
dpkg --add-architecture i386 || true
|
||||||
|
apt-get update 2>&1 | filter_warn
|
||||||
|
apt-get -y dist-upgrade 2>&1 | filter_warn
|
||||||
|
|
||||||
|
exit 0
|
||||||
56
files_to_inject/late_custom_whitout_kernel_mesa.sh
Normal file
56
files_to_inject/late_custom_whitout_kernel_mesa.sh
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set +e
|
||||||
|
trap '' ERR
|
||||||
|
|
||||||
|
# Supprimer le dépôt CD-ROM des sources APT (au tout début du script, dans l’OS installé)
|
||||||
|
sed -i '/cdrom:/d' /etc/apt/sources.list /etc/apt/sources.list.d/*.list 2>/dev/null || true
|
||||||
|
find /etc/apt/sources.list.d/ -type f -size 0 -delete
|
||||||
|
|
||||||
|
# Configuration apt : non-interactif
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
export APT_LISTCHANGES_FRONTEND=none
|
||||||
|
|
||||||
|
# Filtre les warnings "W:" dans la sortie apt
|
||||||
|
filter_warn() { grep -v "^W:" || true; }
|
||||||
|
|
||||||
|
# Mettre à jour les sources sans afficher les warnings
|
||||||
|
apt-get update 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Installer les paquets de base nécessaires
|
||||||
|
apt-get install -y --no-install-recommends gpg dkms libdw-dev clang lld llvm flatpak linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Ajouter la clé et le dépôt XanMod
|
||||||
|
# mkdir -p /etc/apt/keyrings
|
||||||
|
# timeout 30 wget -qO /etc/apt/keyrings/xanmod-archive-keyring.gpg https://dl.xanmod.org/archive.key || true
|
||||||
|
# echo 'deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org trixie main' > /etc/apt/sources.list.d/xanmod.list
|
||||||
|
|
||||||
|
# Ajouter la clé et le dépôt Kisak Mesa
|
||||||
|
# timeout 30 gpg --keyserver keyserver.ubuntu.com --recv-keys EB8B81E14DA65431D7504EA8F63F0F2B90935439 || true
|
||||||
|
# gpg --export EB8B81E14DA65431D7504EA8F63F0F2B90935439 > /etc/apt/trusted.gpg.d/kisak.gpg 2>/dev/null || true
|
||||||
|
# echo 'deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu plucky main' > /etc/apt/sources.list.d/kisak-mesa.list
|
||||||
|
# echo 'deb-src https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu plucky main' >> /etc/apt/sources.list.d/kisak-mesa.list
|
||||||
|
|
||||||
|
# Relancer la mise à jour des sources (pour les nouveaux dépôts)
|
||||||
|
# apt-get update 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Installer le noyau XanMod
|
||||||
|
# apt-get install -y linux-xanmod-x64v3 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Ajouter flathub à flatpak
|
||||||
|
timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo || true
|
||||||
|
|
||||||
|
# Supprimer Konqueror si présent
|
||||||
|
apt-get remove --purge -y konqueror 2>&1 | filter_warn
|
||||||
|
|
||||||
|
# Mettre le shell fish pour chaque utilisateur non root
|
||||||
|
for u in $(awk -F: '$3 >= 1000 && $3 < 65534 { print $1 }' /etc/passwd); do
|
||||||
|
chsh -s /usr/bin/fish $u 2>/dev/null || true
|
||||||
|
done
|
||||||
|
|
||||||
|
# Activer le support i386 et mettre le système à niveau
|
||||||
|
dpkg --add-architecture i386 || true
|
||||||
|
apt-get update 1>&1 | filter_warn
|
||||||
|
# apt-get -y dist-upgrade 2>&1 | filter_warn
|
||||||
|
|
||||||
|
exit 0
|
||||||
0
files_to_inject/logo.png
Normal file → Executable file
0
files_to_inject/logo.png
Normal file → Executable file
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -53,6 +53,9 @@ d-i pkgsel/include string \
|
|||||||
spice-vdagent \
|
spice-vdagent \
|
||||||
flatpak \
|
flatpak \
|
||||||
gpg \
|
gpg \
|
||||||
|
ffmpeg \
|
||||||
|
libavcodec-extra \
|
||||||
|
libavformat-extra \
|
||||||
fish
|
fish
|
||||||
|
|
||||||
# Installation GRUB avec support multi-OS
|
# Installation GRUB avec support multi-OS
|
||||||
@@ -62,23 +65,8 @@ d-i grub-installer/with_other_os boolean true
|
|||||||
# Choix manuel du périphérique d'installation GRUB
|
# Choix manuel du périphérique d'installation GRUB
|
||||||
d-i grub-installer/bootdev seen false
|
d-i grub-installer/bootdev seen false
|
||||||
|
|
||||||
# Configuration post-installation : kernel XanMod, shell Fish, dépôts Flathub, mesa kisak et suppression Konqueror
|
# Configuration post-installation : kernel XanMod, shell Fish, dépôts Flathub, mesa kisak et suppression Konqueror
|
||||||
d-i preseed/late_command string \
|
d-i preseed/late_command string cp /cdrom/late_custom_whitout_kernel_mesa.sh /target/root/late_custom_whitout_kernel_mesa.sh ; chmod +x /target/root/late_custom_whitout_kernel_mesa.sh ; in-target bash /root/late_custom_whitout_kernel_mesa.sh
|
||||||
in-target apt update ; \
|
|
||||||
in-target apt install --no-install-recommends gpg dkms libdw-dev clang lld llvm; \
|
|
||||||
in-target mkdir -p /etc/apt/keyrings ; \
|
|
||||||
in-target wget -qO /etc/apt/keyrings/xanmod-archive-keyring.gpg https://dl.xanmod.org/archive.key ; \
|
|
||||||
in-target sh -c "echo 'deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org trixie main' > /etc/apt/sources.list.d/xanmod.list" ; \
|
|
||||||
in-target gpg --keyserver keyserver.ubuntu.com --recv-keys EB8B81E14DA65431D7504EA8F63F0F2B90935439 ; \
|
|
||||||
in-target gpg --export EB8B81E14DA65431D7504EA8F63F0F2B90935439 | in-target tee /etc/apt/trusted.gpg.d/kisak.gpg ; \
|
|
||||||
in-target sh -c "echo 'deb https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu plucky main' >> /etc/apt/sources.list.d/kisak-mesa.list" ; \
|
|
||||||
in-target sh -c "echo 'deb-src https://ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu plucky main' >> /etc/apt/sources.list.d/kisak-mesa.list" ; \
|
|
||||||
in-target apt update ; \
|
|
||||||
in-target apt install -y linux-xanmod-x64v3 || true ; \
|
|
||||||
in-target flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo ; \
|
|
||||||
in-target apt remove --purge -y konqueror || true ; \
|
|
||||||
in-target bash -c "for u in \$(awk -F: '\$3 >= 1000 && \$3 < 65534 { print \$1 }' /etc/passwd); do chsh -s /usr/bin/fish \$u; done"
|
|
||||||
in-target dpkg --add-architecture i386
|
|
||||||
|
|
||||||
# Finalisation : redémarrage automatique
|
# Finalisation : redémarrage automatique
|
||||||
d-i finish-install/reboot_in_progress note
|
d-i finish-install/reboot_in_progress note
|
||||||
|
|||||||
Reference in New Issue
Block a user