summaryrefslogtreecommitdiffstats
path: root/discover/Makefile.am
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-05-13 16:46:08 +1000
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-08-06 14:08:27 +1000
commit754c0737db6b7337f1d3b40e6e52d9c3abec954f (patch)
treec84598e7790ebd8638b63128edbe720f77ada278 /discover/Makefile.am
parentd2f71341c8077c649c00f75c1f6c3f590c1b2576 (diff)
downloadtalos-petitboot-754c0737db6b7337f1d3b40e6e52d9c3abec954f.tar.gz
talos-petitboot-754c0737db6b7337f1d3b40e6e52d9c3abec954f.zip
discover: Support creation of device-mapper devices
Add discover/dm-snapshot that allows the creation of device-mapper snapshots that support merging changes back to disk. Device-mapper snapshots are a CoW device backed by a ramdisk, mirroring the contents of a source device. No changes are made to the original disk unless an explicit merge action is performed. This guarantees read-only mounting of host disks even when writes could implicitly occur, eg. when performing recovering a journaled filesystem. In the event that writing back to the disk is desired, such as when updating grubenv, the changes made to the snapshot can be merged back to the source disk. This patch adds support but does not change functionality. Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'discover/Makefile.am')
-rw-r--r--discover/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/Makefile.am b/discover/Makefile.am
index 7808110..1672035 100644
--- a/discover/Makefile.am
+++ b/discover/Makefile.am
@@ -24,6 +24,8 @@ discover_pb_discover_SOURCES = \
discover/device-handler.h \
discover/discover-server.c \
discover/discover-server.h \
+ discover/devmapper.c \
+ discover/devmapper.h \
discover/event.c \
discover/event.h \
discover/params.c \
@@ -58,6 +60,10 @@ discover_pb_discover_LDADD = \
$(core_lib) \
$(UDEV_LIBS)
+discover_pb_discover_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ -ldevmapper
+
discover_pb_discover_CPPFLAGS = \
$(AM_CPPFLAGS) \
-DLOCAL_STATE_DIR='"$(localstatedir)"' \
OpenPOWER on IntegriCloud