Commit efa362f9 authored by Geoffrey Gekiere's avatar Geoffrey Gekiere

correction creation persistence

parent 3d9b07ab
......@@ -7,7 +7,7 @@ if [ -e $PERSISTENCE ] && [ -e "$HOME/.config/openbox/menupersistence.xml" ]; th
mv $HOME/.config/openbox/menupersistence2.xml $HOME/.config/openbox/menu2.xml
sed -i '/menupersistence/d' .config/openbox/autostart.sh
openbox --restart
elif [ ! -e /persistence.conf ] && [ ! -e "$HOME/.config/openbox/menupersistence.xml" ]; then
elif [ ! -e $PERSISTENCE ] && [ ! -e "$HOME/.config/openbox/menupersistence.xml" ]; then
zenity --info --title="Bienvenue sur Studiobox3" --text="Bienvenue sur le système d'exploitation Studiobox3.
Pour mémoire:
- votre nom d'utilisateur est 'studiobox'
......
......@@ -3,7 +3,7 @@
VERIFPERSIST=$(ls /lib/live/mount/persistence/sd* | grep persistence.conf)
if [ "$VERIFPERSIST" = "persistence.conf" ]; then
if [ -e $VERIFPERSIST ]; then
echo "La persistance existe déjà"
echo "Vous n'avez pas besoin de lancer ce script"
sleep 5
......@@ -19,9 +19,9 @@ if [ "$CLE" = "" ]
fi
echo "*** Création de la partiton persistante"
START=`LC_ALL=C sudo parted -s $CLE print free | grep Free | grep [MG]B | gawk '{print $1}'`
END=`LC_ALL=C sudo parted -s $CLE print free | grep Free | grep [MG]B | gawk '{print $2}'`
sudo parted -a -s optimal $CLE mkpart primary ext2 $START $END
START=`LC_ALL=C sudo parted $CLE print free | grep Free | grep [MG]B | gawk '{print $1}'`
END=`LC_ALL=C sudo parted $CLE print free | grep Free | grep [MG]B | gawk '{print $2}'`
sudo parted -a optimal -s $CLE mkpart primary ext2 $START $END
sudo mkfs.ext2 $CLE$PART2
echo "*** définition du label « persistence »"
sudo tune2fs -L persistence $CLE$PART2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment