fest: Divers corrections/améliorations
- Améliorations install_Gaming.sh - Problème résolu pour mettre le scripte sur le bureau
This commit is contained in:
@@ -75,9 +75,9 @@ d-i grub-installer/only_debian boolean true
|
|||||||
d-i grub-installer/with_other_os boolean true
|
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 string manual
|
||||||
|
|
||||||
# Configuration post-installation : suppression navigateurs par défaut et installation Firefox Mozilla ainsi que fish dans le bashrc
|
# Configuration post-installation : suppression navigateurs par défaut et installation Firefox Mozilla ainsi que fish
|
||||||
d-i preseed/late_command string \
|
d-i preseed/late_command string \
|
||||||
in-target apt-get remove --purge -y firefox-esr konqueror ; \
|
in-target apt-get remove --purge -y firefox-esr konqueror ; \
|
||||||
in-target mkdir -p /etc/apt/keyrings ; \
|
in-target mkdir -p /etc/apt/keyrings ; \
|
||||||
@@ -89,12 +89,17 @@ d-i preseed/late_command string \
|
|||||||
in-target update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/firefox 200 ; \
|
in-target update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/firefox 200 ; \
|
||||||
in-target update-alternatives --set x-www-browser /usr/bin/firefox ; \
|
in-target update-alternatives --set x-www-browser /usr/bin/firefox ; \
|
||||||
in-target timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo ; \
|
in-target timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo ; \
|
||||||
in-target apt-get install -y fish ; \
|
in-target sh -c "for u in \`awk -F: '\\\$3 == 1000 { print \\\$1 }' /etc/passwd\`; do chsh -s /usr/bin/fish \$u 2>/dev/null; done" ; \
|
||||||
in-target sh -c "for u in \$(awk -F: '\$3 == 1000 { print \$1 }' /etc/passwd); do chsh -s /usr/bin/fish \$u 2>/dev/null; done" ; \
|
|
||||||
in-target dpkg --add-architecture i386 ; \
|
in-target dpkg --add-architecture i386 ; \
|
||||||
in-target apt-get update ; \
|
in-target apt-get update ; \
|
||||||
cp /cdrom/preseeds/install_gaming.sh /target/home/\$(awk -F: '\$3 == 1000 { print \$1; exit }' /target/etc/passwd)/Desktop/install_gaming.sh ; \
|
sh -c 'user=\`awk -F: "\\\\\$3 == 1000 { print \\\\\$1; exit }" /target/etc/passwd\` ; \
|
||||||
chmod +x /target/home/\$(awk -F: '\$3 == 1000 { print \$1; exit }' /target/etc/passwd)/Desktop/install_gaming.sh ; \
|
if [ -n "\$user" ]; then \
|
||||||
|
in-target su - \$user -c "mkdir -p \\\`xdg-user-dir DESKTOP\\\`" ; \
|
||||||
|
desktop_dir=\`in-target su - \$user -c "xdg-user-dir DESKTOP"\` ; \
|
||||||
|
cp /cdrom/preseeds/install_gaming.sh /target\$desktop_dir/install_gaming.sh ; \
|
||||||
|
chmod +x /target\$desktop_dir/install_gaming.sh ; \
|
||||||
|
chown \$user:\$user /target\$desktop_dir/install_gaming.sh ; \
|
||||||
|
fi'
|
||||||
|
|
||||||
# Finalisation : redémarrage automatique
|
# Finalisation : redémarrage automatique
|
||||||
d-i finish-install/reboot_in_progress note
|
d-i finish-install/reboot_in_progress note
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user