Hallo zusammen,
ich habe versucht Arch in einem LUKS-LVM mit btrfs und systemd-boot zu installieren. Die erste Partition soll als EFI und boot-Partition dienen, in der zweiten soll sich der LUKS-Container befinden, in diesem liegt ein LVM mit btrfs LV (hatte zunächst überlegt eine separate Swap-Partition zu nutzen, mich dann aber doch für ein Swapfile als btrfs-subvolume entschieden).
Aktuell scheitere ich an der Einrichtung von systemd-boot mit diesem Setup und bin nicht sicher wie der loader zu konfigurieren ist. Die Optionen verstehe ich ehrlich gesagt noch nicht vollständig, mit der aktuellen Konfiguration komme ich bisher am weitesten: Das System fragt beim Hochfahren nach dem Passwort des LUKS-Containers, wenn ich dieses eingebe erscheint die Abfrage erneut. Außerdem scheint das Ergebnis von bootctl status so nicht zu passen.
Sind meine ersten Versuche mit systemd-boot und btrfs, vielleicht könnt ihr mir weiterhelfen.
Einige Abfragen aus dem chroot:
bootctl status
System:
Firmware: n/a (n/a)
Firmware Arch: x64
Secure Boot: disabled (disabled)
TPM2 Support: yes
Boot into FW: supported
Current Boot Loader:
Product: n/a
Features: ✗ Boot counting
✗ Menu timeout control
✗ One-shot menu timeout control
✗ Default entry control
✗ One-shot entry control
✗ Support for XBOOTLDR partition
✗ Support for passing random seed to OS
✗ Load drop-in drivers
✗ Support Type #1 sort-key field
✗ Support @saved pseudo-entry
✗ Support Type #1 devicetree field
✗ Boot loader sets ESP information
ESP: n/a
File: └─n/a
Random Seed:
System Token: set
Exists: yes
Available Boot Loaders on ESP:
ESP: /boot (/dev/disk/by-partuuid/63074634-5e81-44f9-ba42-55d>
File: ├─/EFI/systemd/systemd-bootx64.efi
fdisk -l
Disk /dev/sda: 232.89 GiB, 250059350016 bytes, 488397168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6F229191-3C79-4EA3-A6D7-A6BB0BDBAFD7
Device Start End Sectors Size Type
/dev/sda1 2048 4095999 4093952 2G EFI System
/dev/sda2 4098048 488395119 484297072 230.9G Linux filesystem
Disk /dev/sdb: 14.91 GiB, 16004415488 bytes, 31258624 sectors
Disk model: USB Flash Drive
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x56449f6a
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 1634303 1634240 798M 0 Empty
/dev/sdb2 1634304 1665023 30720 15M ef EFI (FAT-12/16/32)
Disk /dev/loop0: 693.36 MiB, 727040000 bytes, 1420000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/mycrypt: 230.92 GiB, 247943323648 bytes, 484264304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vgcrypt-archbtrfs: 200 GiB, 214748364800 bytes, 419430400 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/vgcrypt-swap: 16 GiB, 17179869184 bytes, 33554432 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes`
btrfs subvolume list /
ID 256 gen 97 top level 5 path @"root"#4139
ID 257 gen 8 top level 5 path @home
ID 258 gen 9 top level 5 path @snapshots
ID 259 gen 69 top level 5 path @swap
ID 260 gen 18 top level 256 path var/lib/portables
ID 261 gen 19 top level 256 path var/lib/machines
cat /boot/loader/loader.conf
timeout 3
editor 0
default arch.conf
cat /boot/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options rd.luks.name=0a88ce04-6d07-483d-8885-f148e95fabcf=system root=/dev/mapper/vgcrypt-archbtrfs rootflags=subvol=root rd.luks.options=discard rw
lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
archbtrfs vgcrypt -wi-ao---- 200.00g
swap vgcrypt -wi-a----- 16.00g
pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/mycrypt vgcrypt lvm2 a-- 230.91g 14.91g
blkid /dev/sda2
/dev/sda2: UUID="0a88ce04-6d07-483d-8885-f148e95fabcf" TYPE="crypto_LUKS" PARTLABEL="crypt" PARTUUID="d4a946de-ae87-42ae-968c-a756278fad59"