diff --git a/install.sh b/install.sh index 45a352a..b41b7b7 100644 --- a/install.sh +++ b/install.sh @@ -25,9 +25,9 @@ hostnamectl set-hostname $machinename sed -i '1i 127.0.0.1\t'$machinename /etc/hosts # noatime pour les partitions ext4 -#cp /etc/fstab /etc/fstab.bck -#awk '!/^#/ && ($3 != "swap") && ($2 != "/media/cdrom0") { if(!match(/noatime/, $4)) $4=$4",noatime" } 1' /etc/fstab > /etc/fstab.tmp -#mv /etc/fstab.tmp /etc/fstab +cp /etc/fstab /etc/fstab.bck +awk '!/^#/ && ($3 != "swap") && ($2 != "/media/cdrom0") { if(!match(/noatime/, $4)) $4=$4",noatime" } 1' /etc/fstab > /etc/fstab.tmp +mv /etc/fstab.tmp /etc/fstab # Mise à jour de la liste des paquets disponibles et mise à jour des paquets installés apt update