la configuration de sudo n'arrivait pas au bon moment
This commit is contained in:
parent
68887c608b
commit
4e122713b4
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user