/srv/irclogs.ubuntu.com/2017/06/11/#ubuntu-devel.txt

juliankTried 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
juliankIn the end, I used cfdisk and pvcreate, vgcreate, lvcreate from the commandline and then selected the partitions in ubiquity.00:07
juliankBut boy, that was unnecessarily complex.00:07
juliank(Lost about half an hour or so)00:07
juliankI guess the UEFI thing https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/142903000:09
ubottuLaunchpad bug 1429030 in debian-installer (Ubuntu) "netboot mini.iso doesn't support UEFI boot" [High,Triaged]00:09
juliankIf 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
juliankWe also got hit by bug 1581713 which he was not really happy about00:12
ubottubug 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/158171300:12
tsimonq2juliank: 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
tsimonq2juliank: If you want any info from me, let me know.00:12
julianktsimonq2: Oh we got it working, I just wonder why the installer did not let us configure it and I had to go to the console00:13
juliankWe were in manual mode after all, shouldn't we be able to freely configure logical volumes there?00:14
tsimonq2juliank: 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
tsimonq2I couldn't configure it either.00:14
tsimonq2But I know exactly what you're talking about.00:14
tsimonq2(because I've had that problem too)00:14
juliankThat'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
julianktsimonq2: 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
tsimonq2Well before I just said "f*** it, I'm doing this with the Arch wiki and debootstrap," I did try encrypted LVM00:16
tsimonq2juliank: I agree00:17
juliankOh the arch wiki, what would you need that for?00:18
juliankHalf of the install guide stuff there does not work here, does it?00:18
tsimonq2juliank: I had no idea what I was doing and it was the first thing that came to mind :P00:18
tsimonq2https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Simple_partition_layout_with_LUKS00:19
tsimonq2juliank: And we have that as part of our install guide?!?!? :O00:19
juliankI 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 user00:19
juliank+ cryptsetup before the LVM of course :)00:20
tsimonq2juliank: Well I just put /boot/efi on sdb1, /boot on sdb2, and / on sdb300:21
tsimonq2I was in #ubuntu yesterday figuring out how to do this because this is my first EFI system I've ever had :P00:21
juliankI 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, really00:21
tsimonq2I didn't know what I was doing lol00: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
julianktsimonq2: It's mostly a matter of preferences, really00:22
juliank(where to have a separate /boot or not)00:22
juliankHeck, my own system has a separate /var00:23
tsimonq2juliank: Yeah, I usually have a separate /home but I decided against it.00:23
tsimonq2(on the laptop)00:23
julianktsimonq2: May I ask why?00:23
tsimonq2juliank: Why the separate /home in the first place or why I decided against it?00:25
juliankMore the latter00:25
tsimonq2Because I didn't have confidence my root on LUKS would work, let alone multiple partitions :P00:25
tsimonq2tsimonq2> I didn't know what I was doing lol00:25
juliankI see00:26
juliankFor 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
tsimonq2Ah, ok.00:28
juliankAnd LVM is useful, really useful. You can start out with small partitions and increase sizes based on demand :)00:28
tsimonq2When I reinstall it next, I'll probably just do that :)00:28
tsimonq2juliank: Thanks for the advice00:28
juliankand you could do snapshots with lvm, although there are two types and I'm not sure how that works :)00:28
juliankOh, that's actually quite easy it seems00: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
tsimonq2Interesting.00:32
julianktsimonq2: I guess this guide works for the LVM stuff: https://wiki.archlinux.org/index.php/LVM#Installing_Arch_Linux_on_LVM00:33
julianktsimonq2: In your case, obviously instead of /dev/sda2, you'd run pvcreate on your /dev/mapper/<crypt device>00:34
tsimonq2juliank: 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!