Amélioration script Online_Hard_RAID_StandardServer.sh

This commit is contained in:
Eric Morino 2021-06-15 09:51:35 +02:00
parent 4b458b2b55
commit 72afa1936d
1 changed files with 5 additions and 1 deletions

View File

@ -130,7 +130,7 @@ mount -t sysfs sys /mnt/rootfs/sys
mount --bind /run /mnt/rootfs/run
rm -rf /mnt/rootfs/boot/*
mount -LUSR /mnt/rootfs/usr
chroot /mnt/rootfs/ bash
export LC_ALL=C
@ -145,6 +145,10 @@ for kernel_pkg in $(dpkg -l | grep linux-image | awk '{ print $2 }'); do apt pur
apt install -y grub-common grub-pc grub-pc-bin grub2-common linux-image-amd64
apt install -y sudo python python-apt
# Installer Grub et recharger sa configuration
grub-install /dev/sda
update-grub
# ajouter l'utilisateur dans le groupe sudo
# ça facilite le passage d'Ansible (sans root)
usermod -a -G sudo jlecour