Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom partitionioning "Decrypt" does not work #703

Open
rasmus91 opened this issue May 3, 2023 · 4 comments
Open

Custom partitionioning "Decrypt" does not work #703

rasmus91 opened this issue May 3, 2023 · 4 comments

Comments

@rasmus91
Copy link

rasmus91 commented May 3, 2023

What Happened?

When installing with custom partitioning, upon selecting a LUKS partition, a prompt will pop up, asking to decrypt the partition, but when "decrypt" is pressed, nothing seems to happen.

Steps to Reproduce

  1. Go into demo mode
  2. partition disk as:
  • 500 MB fat32 for efi
  • XGB whatever
  1. cryptsetup luksFormat --type luks2 /dev/<partition>
  2. open the installer
  3. When prompted for install type pick custom
  4. click the luks partition to use it for something, enter password, and press decrypt

Expected Behavior

I expected the drive to decrypt so that i could install root to it.

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@neylsongularte
Copy link

neylsongularte commented Mar 24, 2024

In my case decrypt doesn't work either, there must be a problem when running on top of lvm

Captura de tela de 2024-03-24 11 53 11

@neylsongularte
Copy link

neylsongularte commented Mar 24, 2024

image

image

In DecryptMenu.vala:
image

image

image

@rasmus91
Copy link
Author

In my case decrypt doesn't work either, there must be a problem when running on top of lvm

Well, I doubt that that's that, because I am not using LVM for my installs, and will not be using it.

@rasmus91
Copy link
Author

So for elementary OS 8.0 it 'seems' to work a bit better.

I created a virtualbox VM and did the following:

  1. boot elementary OS image
  2. go into demo mode
  3. create partitions in GParted: first create a new gpt partition table, then create the frist partition /dev/sda1 which is just a small efi partition. (im not sure if a /boot is necessary) create a /dev/sda2
  4. open a terminal and do the following (lets pretend your /root is /dev/sda2):
sudo cryptsetup luksFormat --type luks2 /dev/sda2
# You will be prompted to make sure you mean it, type YES
sudo cryptsetup luksOpen /dev/sda2 crypt
# This creates /dev/mapper/crypt which is the raw luks2 partition, that now needs to be formatted
sudo mkfs.btrfs /dev/mapper/crypt
# Now theres a file system in it
  1. Open the installer and proceed to disk layout, pick custom install. You will be able to click the LUKS2 partition and the installer will prompt you for the name it should be mounted as, and the password, but you will not be able to select it as the install target

image

TL;DR: The Installer will now decrypt and mount your luks2 partition, but it will not let you pick it as the /root or any other target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants