AnarchyLinux / installer

Anarchy Linux - A simple and intuitive Arch Linux installer. https://anarchyinstaller.org/
GNU General Public License v2.0
1.23k stars 157 forks source link

Choosing Mount Points with Automatic Disk Encryption (Minimal CLI) #755

Open sercansahan opened 5 years ago

sercansahan commented 5 years ago

When choosing Automatic Partiton with LVM, it may be good idea to give option to choose which mount points will be created as seperate volumes.

Some users may want seperate volume for /home and do not want seperate one for /tmp, some other may want seperate volumes for /usr, /tmp etc.

For recommendation, a fixed list for order of mount points can be used and depending on user choice, volumes can be created depending on their order in that fixed list.

nemanjan00 commented 5 years ago

Right now, this can be done by creating LVM in advance. I would avoid automated LVM due to #353

Swap itself is not inside of encrypted LVM.

One problem I am facing right now is disk configuration crashing due to /dev/[opened luks device] missing, but that can be fixed by patching this line:

https://github.com/deadhead420/anarchy-linux/blob/master/lib/configure_device.sh#L392

All you need is to grep -v that device.

erazemk commented 5 years ago

@sercansahan Isn't the point of an automated installation to not need any input? But I see where you're coming from, it could maybe be a seperate option during the installation.

Edit: Sorry, didn't mean to close the issue.

sercansahan commented 5 years ago

I encountered a crash during disk configuration and could not use automated LUKS on LVM but I am not sure if it is the crash @nemanjan00 mentioned since last time I used the installer was over a year ago.

Also, @JustMeErazem , you are right. An automated installation should not need any input and as you mentioned this can be a separate option during the installation. I opened this because previous home partition can be reused in a fresh installation (which I regularly do if I reinstall my current distro) but current automated LVM config does not allow that.

erazemk commented 5 years ago

@sercansahan Didn't think about this use case, you're right. Would you maybe want to add this option yourself and send a PR?