Results 1 to 10 of 10

Thread: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

  1. #1
    Join Date
    Oct 2018
    Beans
    12

    Angry Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Hello,

    I'm up to my ends with this as I've tried nearly everything possible via the installer and I can only come to the conclusion that it's impossible.

    I'm trying to setup a FDE install where I have separate home and root partitions using LUKS/LVM.

    Lubuntu has decided to switch over to the Calamares installer, so I've gone under the assumption that any work-arounds that required Ubiquity will not work.

    What I've tried so far:
    1) Provision LVM, run Calamares, and attempted to setup distinct partitions with encryption enabled (LUKS) from installer.
    2) Provision LUKS container, setup basic LVM, run Calamares and created typical/distinct partitions via installer.
    calamares_1.jpg

    Both attempts fail for obvious reasons and reasons I'm still not too sure about exactly. Calamares failed in the first attempt while the second attempt didn't even go through the partition creation because it "couldn't".
    calamares_2.PNG

    In both cases, Calamares obviously recognized my provisions correctly and allowed me to create my desired partitions under the scheme I wanted, but it always fails for whatever reason when it comes time to commit these configs.

    I would be more than happy to go into further detail with what steps I took, but after what I've been through, am I correct in assuming the only way to get this working would be to essentially have the one root partition encrypted?

    From the failed attempts, I get the feeling that's the only way to get FDE. My particular target setup involves a UEFI machine which I can set to legacy BIOS. So far, I haven't tried doing that and have tried getting the UEFI route to work.

    Am I correct in my assumptions? Will this only work with one non-LVM partition under LUKS?

    Additional Info on attempt 2:
    install_1.PNGinstall_2.PNG
    Last edited by thatrandomguy+; April 21st, 2019 at 02:51 PM. Reason: more_info

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Setup the normal, single partition install with LVM+LUKS.
    Then come back and reduce the size of the the root-lv to make room for your home-lv. Create the home-lv, mount it to a temp location and move all the files over, then mount it to /home/. Easy, peasey.

    Code:
    $ lsblk
    NAME                      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
    sda                         8:0    0 465.8G  0 disk
    ├─sda2                      8:2    0   732M  0 part  /boot
    ├─sda1                      8:1    0   512M  0 part  /boot/efi
    └─sda3                      8:3    0 464.6G  0 part
    │ └─sda3_crypt            253:0    0 464.6G  0 crypt 
    │   ├─ubuntu--vg-root     253:1    0    25G  0 lvm   /
    │   ├─ubuntu--vg-home--lv 253:3    0    75G  0 lvm   /home
    │   ├─ubuntu--vg-stuff    253:4    0   100G  0 lvm   /stuff
    │   └─ubuntu--vg-swap_1   253:2    0   4.5G  0 lvm   [SWAP]
    I didn't test this on anything newer than 16.04, but it works there, as shown above. I had enough room left for /stuff to hold things I don't need to ever have backed up. Any they are all encrypted. Nice.

    In my install the default size of the swap was much too small, under 1G, so after a few terrible slowdowns, I rememberd that 4.1G is the correct answer for swap for any desktop and did that. I need to reduce it a tiny bit next chance I get.

    Gotta love LVM. I don't remember doing any of this outside the running OS since it wasn't touching any partitions. Rock on with your LVM!

  3. #3
    Join Date
    Oct 2018
    Beans
    12

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    @TheFu

    I don't think that works with 19.04. Considering they (Lubuntu & Ubuntu) use different installers, I don't know of any guide that makes use of my desired setup with Calamares. I did see posts and tutorials for getting FDE with Ubiquity, however.

    I added a screenshot for what I see when attempting to create a setup using LVM+LUKS where LVM is provisionally created within a LUKS container (which I create before running the installer).

    Incidentally, after reading your post, I recalled some fuss being made over LUKS2 not being supported by GRUB; so I repeated the procedure with a LUKS1 container and I received the same outcome.

    I can't tell if it's something I'm doing wrong or if it's just a limitation with the installer, Calamares.

    I tried to reach out to the Lubuntu folk but IRC blocks me every time I use my VPN. Since they don't have a forum, I felt the next best thing was to come here.

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,270

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Since they don't have a forum, I felt the next best thing was to come here.
    Lubuntu has a mailing list. You can join and ask your question, or just browse the archives and learn. I think the maintainers participate here.
    https://lists.ubuntu.com/mailman/listinfo/lubuntu-users

  5. #5
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    You seems to be the most skilled guy around such settings with calamares (found many of your own posts/questions).
    In case there is something usefull to discover:
    https://github.com/calamares/calamares
    and possibly open a bug/request to get some devs comments.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Quote Originally Posted by thatrandomguy+ View Post
    @TheFu

    I don't think that works with 19.04. Considering they (Lubuntu & Ubuntu) use different installers, I don't know of any guide that makes use of my desired setup with Calamares. I did see posts and tutorials for getting FDE with Ubiquity, however.

    I added a screenshot for what I see when attempting to create a setup using LVM+LUKS where LVM is provisionally created within a LUKS container (which I create before running the installer).

    Incidentally, after reading your post, I recalled some fuss being made over LUKS2 not being supported by GRUB; so I repeated the procedure with a LUKS1 container and I received the same outcome.

    I can't tell if it's something I'm doing wrong or if it's just a limitation with the installer, Calamares.

    I tried to reach out to the Lubuntu folk but IRC blocks me every time I use my VPN. Since they don't have a forum, I felt the next best thing was to come here.
    The setup I showed above is current, after I did all the changes via LVM, manually.
    Are you saying that the Wipe everything, use LVM+FDE in the Lubuntu installer doesn't work at all?

    Or am I misunderstanding?

    I generally don't touch non-LTS releases due to the extremely short support periods.

  7. #7
    Join Date
    Oct 2018
    Beans
    12

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Quote Originally Posted by TheFu View Post
    The setup I showed above is current, after I did all the changes via LVM, manually.
    Are you saying that the Wipe everything, use LVM+FDE in the Lubuntu installer doesn't work at all?
    I actually don't recall trying that. I will post my results on that later today. Thanks for the reminder.

  8. #8
    Join Date
    Oct 2018
    Beans
    12

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Update:

    I tried the wipe option but that seemed to only provision the standard partition type and did not involve LVM in any way. Better said, there's no option for LUKS+LVM within the installer itself.
    choices_config.PNGchoices2.jpgchoices.jpg

    I signed up to the appropriate mailing list and hope to get some support on this soon.

    I'm just going to conclude it's impossible for now on Lubuntu 19.04. It looks possible on 16.04 and 18.04 but I'm assuming that's largely due to the installer they have.

    Oh well.

    I'll just settle with having / encrypted with LUKS and then later setting up ecryptfs on home/swap. No biggie.

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Or install 'server' which does support LUKS+LVM and add the lxde-desktop metapackage. Did all Ubuntu flavors change to the same installer and remove LVM+LUKs? I know there was a push for mainstream Ubuntu to get ZFS to be the OS partition, but they couldn't finish is up before the release.

    ecryptfs was deprecated for a few reasons. Be certain those reasons are understood.

    I've always much preferred the customization of storage in the CentOS distro. Basically, we have control of everything there and don't have to fight to setup storage how we want. Ubuntu has dumbed it down so much as to be too stupid.
    Last edited by TheFu; April 22nd, 2019 at 09:32 PM.

  10. #10
    Join Date
    Oct 2018
    Beans
    12

    Re: Cannot Install Lubuntu 19.04 w/ LUKS+LVM/FDE

    Quote Originally Posted by TheFu View Post
    Did all Ubuntu flavors change to the same installer and remove LVM+LUKs?
    I think Lubuntu are the only ones to use something other than Ubiquity (flavor-wise). The installer technically supports LUKS/LVM... it just doesn't support all use-cases.
    ecryptfs was deprecated for a few reasons. Be certain those reasons are understood.

    I've always much preferred the customization of storage in the CentOS distro. Basically, we have control of everything there and don't have to fight to setup storage how we want. Ubuntu has dumbed it down so much as to be too stupid.
    I didn't think about that before but that does ring a bell. Also, I very much agree with the last sentiment. I was installing Ubuntu on a relative's desktop recently and noticed the installer has gone through some weird changes since I last used it.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •