You are not logged in.

#1 2024-11-06 16:22:29

OIhfes
Member
Registered: 2024-01-17
Posts: 14

[SOLVED]Which mkinitcpio install file add_binary the dmsetup to the

Well, I was using lsinitcpio -x to extract my initcpio file (using unified kernel image) to check the content inside it.
I found the /usr/bin/dmsetup inside the initcpio image, but I can't find any "add_binary" that add the dmsetup in all of the mkinitcpio install file in the rootfs /usr/lib/initcpio/install/*

I also check the mkinitcpio script itself but find nothing about the dmsetup.
So where is this dmsetup come from?

My mkinitcpio hooks are:

 HOOKS=(systemd autodetect microcode modconf keyboard sd-vconsole sd-encrypt block filesystems fsck) 

Other sections in the mkinitcpio.conf are empty.

Last edited by OIhfes (2024-11-06 17:13:08)

Offline

#2 2024-11-06 16:50:59

loqs
Member
Registered: 2014-03-06
Posts: 18,075

Re: [SOLVED]Which mkinitcpio install file add_binary the dmsetup to the

/usr/lib/initcpio/install/sd-encrypt which includes `map add_udev_rule '10-dm.rules'` which adds /usr/lib/udev/rules.d/10-dm.rules which includes `IMPORT{program}="/usr/bin/dmsetup udevflags $env{DM_COOKIE}"`.

Offline

#3 2024-11-06 17:11:14

OIhfes
Member
Registered: 2024-01-17
Posts: 14

Re: [SOLVED]Which mkinitcpio install file add_binary the dmsetup to the

Very thanks! It is so deeply hidden that it will be difficult for me to find its source without your help.

Offline

Board footer

Powered by FluxBB