Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-fs/lvm2 without udev use flag?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 272

PostPosted: Wed Jul 16, 2014 8:50 pm    Post subject: sys-fs/lvm2 without udev use flag? Reply with quote

I'm building myself an initramfs to replace dracut. dracut is too big and too complex for me.
I want to use static dev in initramfs, and use udev in the main system.

My rootfs is an LVM2 logical volume, so I need to include /usr/sbin/lvm in initramfs.
But I found /usr/sbin/lvm depends on libudev.so:
Code:
fpemud-workstation sbin # ldd /usr/sbin/lvm
        ...
   libudev.so.1 => /lib64/libudev.so.1 (0x00007f81fcee8000)
        ...


May this be the reason why the LVs activated in initramfs are not recognized by udev of the main system? Like:
Code:
fpemud-workstation sbin # udevadm info /dev/dm-2
P: /devices/virtual/block/dm-2
N: dm-2
E: DEVNAME=/dev/dm-2
E: DEVPATH=/devices/virtual/block/dm-2
E: DEVTYPE=disk
E: DM_UDEV_DISABLE_DISK_RULES_FLAG=1
E: DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
E: DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
E: MAJOR=254
E: MINOR=2
E: SUBSYSTEM=block
E: SYSTEMD_READY=0
E: TAGS=:systemd:
E: UDEV_LOG=7
E: USEC_INITIALIZED=555552


Can I just disable the "udev" USE flag of sys-fs/lvm2?
BTW, what does sys-fs/lvm2 use libudev for? Discover device faster?

My initramfs generator code is here: fpemud-kernelmanager.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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