fractionnement du script install_sys.sh en plusieur petit script

This commit is contained in:
Jérémy MANSON
2017-10-17 09:23:01 +02:00
parent a7e7aa9e2b
commit f647224a81
8 changed files with 51 additions and 51 deletions

10
sysconfig.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# configuration du système
echo "Europe/Paris" > $CHROOT/etc/timezone
cp /etc/resolv.conf $CHROOT/etc/resolv.conf
echo "fr_FR.UTF-8 UTF-8" >> $CHROOT/etc/locale.gen
chroot $CHROOT /bin/bash -c "locale-gen"
echo 'LANG="fr_FR.UTF-8"' > $CHROOT/etc/env.d/02locale
echo 'LC_COLLATE="C"' >> $CHROOT/etc/env.d/02locale
chroot $CHROOT /bin/bash -c "useradd -p \`openssl passwd -1 password\` -G wheel joe"
sed -i 's/keymap="us"/keymap="fr"/g' $CHROOT/etc/conf.d/keymaps