Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
anyone boot successfully with genkernel+luks/lvm+systemd?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
tlix
n00b
n00b


Joined: 15 Jul 2015
Posts: 8

PostPosted: Wed Jan 29, 2020 3:29 pm    Post subject: anyone boot successfully with genkernel+luks/lvm+systemd? Reply with quote

it's a fresh installation, everything else works fine except for the boot process:

on boot, once luks got decrypted, root mounted and systemd take over, but soon failed
with mount timeout(home,swap) and drop a emergency shell, in the shell, I can recover
to normal boot via:
Code:

lvchange -an vg_rt/{home,swap}
lvchange -ay vg_rt/{home,swap}
systemctl default


if switched from to genkernel-next, regenerate the initramfs, I can boot normally.
It's likely to be related to the udev support in initramfs, which is required for lvm
along with systemd. But looks like genkernel is now more prefered from the wiki:
https://wiki.gentoo.org/wiki/Genkernel#Genkernel.3F_Genkernel-next.3F_Dracut.3F

Looks like genkernel does not support boot with systemd with multiple lvm volume setup,
But I'm still wondering it there anyone have successfull setup with these, or is it possible to
configure systemd only for the issue as the rootfs is mounted there, so that there is no need
to change the behaviour of initramfs, if not, I might prepare to customize a initramfs, which
should really take some time to go ...

here is the related info:
- partition latout:
Code:

    sda                8:0    0 119.2G  0 disk
    ├─sda1             8:1    0   127M  0 part  /boot/efi
    ├─sda2             8:2    0   128M  0 part  /boot
    └─sda3             8:3    0   119G  0 part
      └─root         252:0    0   119G  0 crypt
        ├─vg_rt-root 252:1    0    48G  0 lvm   /
        ├─vg_rt-home 252:2    0    64G  0 lvm   /home
        └─vg_rt-swap 252:3    0     4G  0 lvm   [SWAP]


- udevadm info /dev/vg_rt/root
Code:

P: /devices/virtual/block/dm-1
N: dm-1
L: 0
S: mapper/vg_rt-root
E: DEVPATH=/devices/virtual/block/dm-1
E: DEVNAME=/dev/dm-1
E: DEVTYPE=disk
E: MAJOR=252
E: MINOR=1
E: SUBSYSTEM=block
E: USEC_INITIALIZED=15123932
E: DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
E: DM_UDEV_DISABLE_DISK_RULES_FLAG=1
E: DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
E: DM_NAME=vg_rt-root
E: DM_UUID=LVM-HNz4dsSdsLamjI0r9eLNBxicPO4e9nfAzXr22LoAb3aiYMvaIff6ZHggKOMZGY8Q
E: DM_SUSPENDED=0
E: DM_UDEV_RULES_VSN=2
E: DM_VG_NAME=vg_rt
E: DM_LV_NAME=root
E: DEVLINKS=/dev/mapper/vg_rt-root
E: TAGS=:systemd:


- package info:
Quote:

sys-fs/lvm2-2.02.184-r5
sys-apps/systemd-243-r2
sys-kernel/genkernel-4.0.2
sys-kernel/gentoo-sources-5.4.13


- related (or maybe) reference:
. https://bugs.gentoo.org/424637
. https://github.com/systemd/systemd/issues/11255
. https://bugs.gentoo.org/468942
. https://wiki.gentoo.org/wiki/Systemd#Using_LVM_and_initramfs


Last edited by tlix on Fri Jan 31, 2020 2:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
coderanger
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 102
Location: Ukraine

PostPosted: Thu Jan 30, 2020 11:12 pm    Post subject: Reply with quote

genkernel-4.0.2 does not work for me either.
Right the same setup and disk layout.
Back to top
View user's profile Send private message
tlix
n00b
n00b


Joined: 15 Jul 2015
Posts: 8

PostPosted: Fri Jan 31, 2020 2:39 pm    Post subject: Reply with quote

here is the bug report: https://bugs.gentoo.org/show_bug.cgi?id=706434

For now I'll just leave it aside as I can not solve it.
Back to top
View user's profile Send private message
tlix
n00b
n00b


Joined: 15 Jul 2015
Posts: 8

PostPosted: Mon Feb 10, 2020 9:38 am    Post subject: Reply with quote

I got a solution, not sure whether safe, it's here: https://bugs.gentoo.org/706434#c13

still long for an the official solution
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum