Amélioration script Online_Hard_RAID_StandardServer.sh
This commit is contained in:
parent
4b458b2b55
commit
72afa1936d
|
@ -130,7 +130,7 @@ mount -t sysfs sys /mnt/rootfs/sys
|
||||||
mount --bind /run /mnt/rootfs/run
|
mount --bind /run /mnt/rootfs/run
|
||||||
|
|
||||||
rm -rf /mnt/rootfs/boot/*
|
rm -rf /mnt/rootfs/boot/*
|
||||||
|
mount -LUSR /mnt/rootfs/usr
|
||||||
chroot /mnt/rootfs/ bash
|
chroot /mnt/rootfs/ bash
|
||||||
|
|
||||||
export LC_ALL=C
|
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 grub-common grub-pc grub-pc-bin grub2-common linux-image-amd64
|
||||||
apt install -y sudo python python-apt
|
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
|
# ajouter l'utilisateur dans le groupe sudo
|
||||||
# ça facilite le passage d'Ansible (sans root)
|
# ça facilite le passage d'Ansible (sans root)
|
||||||
usermod -a -G sudo jlecour
|
usermod -a -G sudo jlecour
|
||||||
|
|
Loading…
Reference in a new issue