From 72afa1936d0fc87e1856b2003f82f24038b5098d Mon Sep 17 00:00:00 2001 From: Eric Morino Date: Tue, 15 Jun 2021 09:51:35 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20script=20Online=5FHard=5FRA?= =?UTF-8?q?ID=5FStandardServer.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Online_Hard_RAID_StandardServer.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Online_Hard_RAID_StandardServer.sh b/Online_Hard_RAID_StandardServer.sh index 03effc0..38c2344 100644 --- a/Online_Hard_RAID_StandardServer.sh +++ b/Online_Hard_RAID_StandardServer.sh @@ -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