Open carlos22 opened 6 years ago
You'r right, archfi is made to be launched multiple time and crypted partition is not handled on second mount. At this time, you can mount your partition manualy with a second TTY. I don't have tested how I can detect a crypted part, I'll try to find a solution.
I think the parition type is "e8" LUKS (see: e8 https://www.win.tue.nl/~aeb/partitions/partition_types-1.html).
Easy method to find out (as root):
$ blkid -o value -s TYPE /dev/sda4
crypto_LUKS
Thanks for the tricks... I'll try to add it to the script
Sorry for the late response to this request ... I made a lot of changes on archfi which prepares the possibility to manage the detection of luks ...
Is this something you need me to work on? When exiting archfi, any luksOpen commands that were run should be followed up with a luksClose to be able to leave a clean slate for the next archfi run.
@TheLinuxNinja You're right, on install when you reboot, it isn't a problem but if you use it on an existing system, this can be a problem...
If the root is crypted, then the "mount exsisting" should call
cryptsetup luksOpen /dev/<id> root
and thenmount /dev/mapper/root /mnt
. This is useful if you run thearchfi
multiple times (e.g. if you forgot something). Great script :+1: