dreemurrs-embedded / archarm-mobile-fde-installer

44 stars 16 forks source link

¨Atleast one partition is being used¨ error, should prompt to format it. #13

Open PoorPocketsMcNewHold opened 2 years ago

PoorPocketsMcNewHold commented 2 years ago
Downloading images...
archlinux-pinephone-phosh-20211130.sqfs: Réussi
Erreur: Au moins une partition de /dev/sdf est en cours d’utilisation.
Erreur: Vous voulez établir une partition de 0,00B à 256MB (secteurs 0..500000).
La position la plus proche gérable est 512B à 1048kB (secteurs 1..2047). 
Erreur: Impossible d’avoir des partitions qui se chevauchent.
You'll now be asked to type in a new encryption key. DO NOT LOSE THIS!
Saisissez la phrase secrète pour /dev/sdf2 : 
Vérifiez la phrase secrète : 
Le périphérique /dev/sdf2 est utilisé. Impossible de continuer avec l'opération de formatage.
La commande a échoué avec le code -1 (paramètres erronés ou manquants).
/dev/sdf2 n'est pas un périphérique LUKS valide.
ERROR: Failed to locate rootfs mapper. Aborting.

Except if it was because I just had Gnome Disks randomly opened in the background during the process, the script didn't know what to do with the mounted eMMC encrypted partition of my PinePhone, before the encryption process, despite knowingly it wouldn't be able to do anything.

I've did try with, and without decrypting the eMMC partition (With the gnome decryption prompt when plug-in in on Gnome), and both gave the same result.

So, I had to format that eMMC partition clean myself manually.

It's more a suggestion than a real bug, just to prevent confusion in that case to users.