[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linux-31] Fwd: Copier la table des partitions...



Le 20/07/2018 09:34, jpcas a écrit :

Ça devrait le faire ;-)

Du coup, on pourrait directement écrire :

info=$(parted -m ${1} unit B print | grep "ext4" | tail -n1)

Oui!

En relisent le script... je viens de m’apercevoir qu'il y a un autre endroit ou cela pose problème... à partir de la ligne 124:
=========================================================
#Réduction de l'image
info=$(parted -m ${1} unit B print)
info=$(echo "${info}" | grep "ext4")
info=$(echo "${info}" | tail -n1) ### ajouté par JM car y a 2 partitions ext4
=========================================================

J'espère que c'est bon !

JM