juliank | Tried installing 16.04.2 for a friend today. Wanted to have LVM on UEFI with separate home. Started with netboot image - did not work with UEFI (what's going on there); then switched to an Xubuntu image (because XFCE seems like a good fit), and got completely confused - the installer apparently was creating mbr partition tables, and we could not configure logical volumes ourself. | 00:06 |
---|---|---|
juliank | In the end, I used cfdisk and pvcreate, vgcreate, lvcreate from the commandline and then selected the partitions in ubiquity. | 00:07 |
juliank | But boy, that was unnecessarily complex. | 00:07 |
juliank | (Lost about half an hour or so) | 00:07 |
juliank | I guess the UEFI thing https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1429030 | 00:09 |
ubottu | Launchpad bug 1429030 in debian-installer (Ubuntu) "netboot mini.iso doesn't support UEFI boot" [High,Triaged] | 00:09 |
juliank | If anyone knows what I did wrong, please let me know :) | 00:09 |
juliank | (He previously had an Arch on there, with 150GB allocated to / and 250GB to /home, I thought that looked ridiculous, and his Arch friends did not appear today, so he runs xubuntu now...) | 00:10 |
juliank | We also got hit by bug 1581713 which he was not really happy about | 00:12 |
ubottu | bug 1581713 in Ubuntu GNOME "Ubuntu Software always asks for an Ubuntu Single Sign-On account when installing or removing a snap package" [High,Triaged] https://launchpad.net/bugs/1581713 | 00:12 |
tsimonq2 | juliank: Yesterday I did something similar with my laptop, encrypted LUKS partition on top of an ext4 root partition and I got secure boot working and everything with just a debootstrapped install and chroot. | 00:12 |
tsimonq2 | juliank: If you want any info from me, let me know. | 00:12 |
juliank | tsimonq2: Oh we got it working, I just wonder why the installer did not let us configure it and I had to go to the console | 00:13 |
juliank | We were in manual mode after all, shouldn't we be able to freely configure logical volumes there? | 00:14 |
tsimonq2 | juliank: I've had similar problems with Ubiquity on a Kubuntu Artful image but I assumed it was a hardware-specific thing because I could do it on every other computer. | 00:14 |
tsimonq2 | I couldn't configure it either. | 00:14 |
tsimonq2 | But I know exactly what you're talking about. | 00:14 |
tsimonq2 | (because I've had that problem too) | 00:14 |
juliank | That's actually the first thing I installed on LVM I think. While my Debian runs on LVM, I actually migrated that on the command line after a few years, and never used an installer for the LVM part. | 00:15 |
juliank | tsimonq2: There was also weirdly enough an option to choose where to install the bootloader on, which I thought was ridiculous on an EFI system. | 00:16 |
tsimonq2 | Well before I just said "f*** it, I'm doing this with the Arch wiki and debootstrap," I did try encrypted LVM | 00:16 |
tsimonq2 | juliank: I agree | 00:17 |
juliank | Oh the arch wiki, what would you need that for? | 00:18 |
juliank | Half of the install guide stuff there does not work here, does it? | 00:18 |
tsimonq2 | juliank: I had no idea what I was doing and it was the first thing that came to mind :P | 00:18 |
tsimonq2 | https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Simple_partition_layout_with_LUKS | 00:19 |
tsimonq2 | juliank: And we have that as part of our install guide?!?!? :O | 00:19 |
juliank | I guess it's partitioning (ESP + LVM + pvs + vgs + lvs), then debootstrap to /target, and then edit /etc/fstab mount /proc and /sys and /dev in the chroot, install grub-efi, run update-grub, run adduser to add a user | 00:19 |
juliank | + cryptsetup before the LVM of course :) | 00:20 |
tsimonq2 | juliank: Well I just put /boot/efi on sdb1, /boot on sdb2, and / on sdb3 | 00:21 |
tsimonq2 | I was in #ubuntu yesterday figuring out how to do this because this is my first EFI system I've ever had :P | 00:21 |
juliank | I put /boot/efi on sda1, and LVM PV in sda2, and just /, /home, and /swap in there - why maintain a separate /boot, makes no sense to me, really | 00:21 |
tsimonq2 | I didn't know what I was doing lol | 00:22 |
* juliank is happy hibernate works with swap-in-lvm. At first it did not, Xorg crashed on resume, but installing the updates fixed that :) | 00:22 | |
juliank | tsimonq2: It's mostly a matter of preferences, really | 00:22 |
juliank | (where to have a separate /boot or not) | 00:22 |
juliank | Heck, my own system has a separate /var | 00:23 |
tsimonq2 | juliank: Yeah, I usually have a separate /home but I decided against it. | 00:23 |
tsimonq2 | (on the laptop) | 00:23 |
juliank | tsimonq2: May I ask why? | 00:23 |
tsimonq2 | juliank: Why the separate /home in the first place or why I decided against it? | 00:25 |
juliank | More the latter | 00:25 |
tsimonq2 | Because I didn't have confidence my root on LUKS would work, let alone multiple partitions :P | 00:25 |
tsimonq2 | tsimonq2> I didn't know what I was doing lol | 00:25 |
juliank | I see | 00:26 |
juliank | For future reference: If you want multiple partitions on LUKS, you usually put an LVM PV on top of the LUKS, then you add add logical volumes in there. | 00:27 |
tsimonq2 | Ah, ok. | 00:28 |
juliank | And LVM is useful, really useful. You can start out with small partitions and increase sizes based on demand :) | 00:28 |
tsimonq2 | When I reinstall it next, I'll probably just do that :) | 00:28 |
tsimonq2 | juliank: Thanks for the advice | 00:28 |
juliank | and you could do snapshots with lvm, although there are two types and I'm not sure how that works :) | 00:28 |
juliank | Oh, that's actually quite easy it seems | 00:30 |
juliank | (Take a snapshot of my Debian partition in my linux volume group, with 1GB CoW data storage: lvcreate -L1G -s -n rootsnap /dev/linux/Debian) | 00:31 |
tsimonq2 | Interesting. | 00:32 |
juliank | tsimonq2: I guess this guide works for the LVM stuff: https://wiki.archlinux.org/index.php/LVM#Installing_Arch_Linux_on_LVM | 00:33 |
juliank | tsimonq2: In your case, obviously instead of /dev/sda2, you'd run pvcreate on your /dev/mapper/<crypt device> | 00:34 |
tsimonq2 | juliank: Ah, ok. | 00:34 |
=== JanC_ is now known as JanC |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!