From 4e122713b4e99381c5293ed767ca35ff42e2bd18 Mon Sep 17 00:00:00 2001 From: Jeremy MANSON Date: Tue, 17 Oct 2017 03:46:36 +0200 Subject: [PATCH] la configuration de sudo n'arrivait pas au bon moment --- install_sys.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_sys.sh b/install_sys.sh index a1b775c..a5508b1 100644 --- a/install_sys.sh +++ b/install_sys.sh @@ -20,7 +20,6 @@ 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" -echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel sed -i 's/keymap="us"/keymap="fr"/g' $CHROOT/etc/conf.d/keymaps #configurer portage @@ -43,6 +42,9 @@ chroot $CHROOT /bin/bash -c "emerge sudo grub --getbinpkgonly" tar xjpf $CHROOT/kernel.tar.bz2 -C $CHROOT/ tar xjpf $CHROOT/modules.tar.bz2 -C /lib/modules/ +#configurer sudo +echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel + #configurer grub chroot $CHROOT /bin/bash -c "grub-install /dev/sda" chroot $CHROOT /bin/bash -c "grub-mkconfig -o /boot/grub/grub.cfg"