site  contact  subhomenews

Device-mapper compiled

November 16, 2016 — BarryK
I posted yesterday about 'dmsetup' not working:
http://bkhome.org/news/201611/investigating-device-mapper.html

So, compiled it and it now works. Here is how, version 2.02.167:
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=x86_64-pc-linux-gnu --disable-udev-systemd-background-jobs --disable-dbus-service --disable-selinux --with-raid=none --with-udev-prefix="" --with-udevdir=/lib/udev/rules.d --with-thin=none --sbindir=/sbin --libdir=/lib

# make device-mapper
# new2dir make install_device-mapper
<

The website has incorrect instruction for install, my above is correct. Project website:
http://www.sourceware.org/dm/

x86_64 PETs:
http://distro.ibiblio.org/quirky/quirky6/amd64/packages/pet_packages-xerus/device-mapper-2.02.167-xerus64.pet
http://distro.ibiblio.org/quirky/quirky6/amd64/packages/pet_packages-xerus/device-mapper_DEV-2.2.02.167-xerus64.pet
http://distro.ibiblio.org/quirky/quirky6/amd64/packages/pet_packages-xerus/device-mapper_DOC-2.2.02.167-xerus64.pet

Comments

Yesterday I compiled the 4.8.8 kernel with the device-mapper patches from Kees Cook, and the modules built-in.

However, came to a stop, as I realised the 'table' format only accepts normal device names (sd*) or major:minor numbers.

This is not satisfactory when booting off a removable drive. I need unique persistent naming. This is at the kernel boot parameters, prior to udev running.

I have sent an email to Kees, requesting if the patch could be extended to handle PARTUUIDs.

Unless I have missed something in my reading of the docs, the device spec is limited to sd* or major:minor numbers, which is surprising.

So, I have raised this question on the 'dm-devel' mail list:

https://www.redhat.com/archives/dm-devel/2016-November/msg00152.html

Tags: linux