Correction cp install_gaming.sh vers target

This commit is contained in:
2025-08-03 12:04:32 +02:00
parent 97fdbafbe1
commit e8fb7035e9

View File

@@ -93,14 +93,8 @@ d-i preseed/late_command string \
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 ; \
sh -c 'user=\`awk -F: "\\\\\$3 == 1000 { print \\\\\$1; exit }" /target/etc/passwd\` ; \ sh -c 'cp /cdrom/preseeds/install_gaming.sh /target/usr/local/bin/install_gaming.sh ; \
if [ -n "\$user" ]; then \ chmod +x /target/usr/local/bin/install_gaming.sh ; \
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