PureOS Installer handicapped?


#1

A question for the community: have any of you been able to successfully install PureOS with a separate /home partition?

Edit:
what I’m going for is:

  • unencrypted /boot partition (sda1) for grub
  • encrypted root partition (sda2) with encrypted LVM containing the following volumes:
    • /
    • /home
    • swap

With the most recent ISO, I have tried:

  • within installer: manually partitioning the drive, setting appropriate flags and mount points (/, /boot, /home, swap)

    • fails with error about being unable to find a target of some sort
  • in terminal: shredding the drive, then partitioning root (/dev/sda2) and boot (/dev/sda1), setting boot flag, creating physical volume within root (there is no way to create a PV within the installer that I can find); within installer: setting up encryption and volumes

    • fails due to being unable to access LUKS volume (installer closes the encrypted volume even though I open it before beginning with the installer)
  • in terminal: shredding the drive, partitioning boot and root, setting up encryption, setting up LVM, and formatting LV’s, setting up swap; within installer: manually selecting the appropriate partition and LVM for things

    • fails due to being unable to access LUKS volume, same as above

Am I missing something, or is it really broken?

Thanks!


#2

LUKS being encryption. Perhaps trying to do the same process first without any encryption volume?? Or maybe I misunderstood what you were trying to do. I have not much used the more recent Pure Installer, so I am not familiar with what you are doing or seeing. Please come back here and tell me what works, as I likely have less experience with this than you.


#3

I am trying to accomplish the following disk setup:

 -----------------------------------
|         | sda2  volumegroup LUKS |
|   sda1  | ------------------------
|   /boot |  lv  |  lv  |   lv     |
|         | swap |   /  | /home    |
|         |      |      |          |
------------------------------------

This way /boot is unencrypted, and swap, root (/), and home are all encrypted logical volumes under one LUKS key. I know the PureOS installer accomplishes this with a different drive layout. I would be fine with this, but I haven’t been able to get the PureOS installer to work without erasing the home volume.

Considering that my goal is to preserve the /home volume, beginning the process without encryption is not an option.

This issue I run into is that I have to open LUKS via Nautilus or terminal before starting PureOS installer, otherwise the installer sees the LUKS volume as one big volume. The installer does not have the ability to open LUKS on its own, as far as I can tell. When opening LUKS ahead of time, it looks like it will be able to replace the / volume with PureOS, but it fails. The error mentions being unable to remove the / partition. I think this happens because the installer closes the entire LUKS volume before beginning, which cuts its access off to the / volume.

Overall, the installer could be more robust for custom configurations like this, but the key fix to making this possible is preventing the installer from closing LUKS before beginning.


#4

I started to give a longer post yesterday, and felt it was more like I was not answering your question, but co-opting your post to discuss my situation.

My first question is which computer are you using to install Pure OS? Is it a Librem with which version of Core Boot?

I am not using a Librem (I have not won the lottery yet) So I was looking at setting up a dual boot on an Alienware. The folks who work with Alienware say that it will not do Dual Boot, it must have Windows only. I found this resource: https://easylinuxtipsproject.blogspot.com/p/dual-problem.html

I am not sure if some boot managers will recognize LUKS, and start the process to ask for the key.
My thought being to first install a non-encrypted version of Ubuntu, Then try to install Pure on top of that without formatting the drive, or changing the boot manager.

For security, I had thought it would be wise to put each of my personal information groups into separate encrypted folders, with different Passwords. Encrypting the entire drive can have implications of accessing the information on a back up later, when I have changed the primary password.

I do recall an older post about some oddities with an earlier version of the Core Boot, basic Librem Mobo Firmware had some other limitation. I recall that is was to be fixed by a later version of the Firmware.

To violate the basic means of answering your question: I had thought to open my tower, unplug all the hard drives but one. Using a flash drive with Pure, install to the remaining hard drive, then clone that back to a USB flash drive. Then I only have to solve boot problems, when I clone the Flash Drive to another partition on another computer.


#5

Wath is the exact error?

Have you open it via Nautilus or with luks in the terminal?


#6

The exact error, I am not sure. I can reproduce it and post it here when I have the spare time to do so.

As for opening LUKS, I have tried opening it in both Nautilus and terminal, with the same results. As far as I can tell, the installer does not provide the means to open LUKS.


PureOS installation with LVM volume groups
#7

It sounds like we are both having difficulties achieving the install configuration we want, but our goals are different.

I am using a Librem 15v4, installing to the primary SSD (not nvme).

As I’m using Arch now, I will continue my tinkering with an external SSD.


#8

Dedian installer, Ubiquity, Calamares… none of the graphic installers support existing luks partitions.
Generally, I use luks in terminal or Gnome disk before installing.
The exact error will help to confirm if your hypothesis is good.

If it’s the case, try the command line installer.


#9

Why not back up the home directory you want to preserve, do a new installation, and once it’s setup bring back in the home directory? Are you interested more in the data or in the specific layout?


#10

Thank you for the suggestion!

I am interested in both. There is time savings and convenience factor in having a separate home volume/partition, in that you simply leave it in place when reinstalling or changing the OS.

My setup is a separate home volume, which backs up automatically to my internal nvme drive.


#11

is this interesting to you?

supposed to be a link in the previous line. not sure if the forum monitor might delete it.