Re: Installing with btrfs on LVM on dm-crypt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 1, 2016 at 1:37 PM, Dmitriy Volkov <wldhx@xxxxxxxxxxxxxxxxx> wrote:
> Hello,
>
> I'm trying to install Fedora 23 with a following partition layout:
>
> [disk1]
> - `/boot`
>
> [disk2]
> - cryptdevice
>     - LVM
>         - btrfs `/` (with btrfs subvolumes, which is irrelevant here)
>         - swap

The installer GUI definitely doesn't let you create this layout. I'm
not sure if kickstart will, you should ask on the Anaconda list. It
may not either because LVM is a kind of device and so is Btrfs, and
device types, I *think* are all mutually exclusive and can't be
stacked/nested.

>
> I have to use this relatively complicated layout to be able to 1) use dm-crypt plain mode on disk2 and 2) have proper swap with btrfs; it faired quite well with Arch.

Well the installer doesn't create plain crypt devices either, so no
matter what you're doing something outside the installer, so what
ought to be true is if you create the layout in advance, the installer
will let you use it.

Trick 1 is to make sure all usable space is partitioned somehow (leave
no unallocated space). If there's allocated space the installer will
try to use it and create a new Btrfs volume. So make a boot partition
on disk 1 (format it, don't format it, doesn't matter), and then make
another partition for the rest of the space, the type code doesn't
matter.

Trick 2 is in the installer's custom/manual partitioning, first choose
Btrfs in the partition scheme pop-up menu, then:

Click on Unknown to reveal precreated items, click on precreated boot,
assign mount point /boot, check format, click apply
Click again on unknown, click precreated swap, choose swap as fs,
maybe you have to check format, click apply
Click +  and choose mount point / without a size. This creates root
subvolume on existing Btrfs.
Click + and choose mount point /home without size. This creates home
subvolume on existing Btrfs.

Crap. I just thought of something. I don't know whether anaconda will
let you install to plain crypt at all because it doesn't offer a UI to
unlock what it doesn't recognize. And it only recognizes LUKS. Maybe
if it's already unlocked, and LVM is active, maybe it's possible.


-- 
Chris Murphy
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux