Correction cp install_gaming.sh vers target
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user