site  contact  subhomenews

Device-mapper compiled

November 16, 2016 — BarryK
I posted yesterday about 'dmsetup' not working:

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:

x86_64 PETs:


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:

Tags: linux