summaryrefslogtreecommitdiff
path: root/lib/sbuild/chroot/facet/lvm-snapshot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sbuild/chroot/facet/lvm-snapshot.cc')
-rw-r--r--lib/sbuild/chroot/facet/lvm-snapshot.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/sbuild/chroot/facet/lvm-snapshot.cc b/lib/sbuild/chroot/facet/lvm-snapshot.cc
index 3f66a41b..fbc97222 100644
--- a/lib/sbuild/chroot/facet/lvm-snapshot.cc
+++ b/lib/sbuild/chroot/facet/lvm-snapshot.cc
@@ -18,6 +18,7 @@
#include <config.h>
+#include <sbuild/chroot/facet/factory.h>
#include <sbuild/chroot/facet/block-device.h>
#include <sbuild/chroot/facet/lvm-snapshot.h>
#include <sbuild/chroot/facet/mountable.h>
@@ -42,6 +43,19 @@ namespace sbuild
namespace facet
{
+ namespace
+ {
+ factory::facet_info lvm_snapshot_info =
+ {
+ "lvm-snapshot",
+ N_("Support for ‘lvm-snapshot’ chroots"),
+ []() -> facet::ptr { return lvm_snapshot::create(); }
+ };
+
+ factory lvm_snapshot_register(lvm_snapshot_info);
+
+ }
+
lvm_snapshot::lvm_snapshot ():
block_device_base(),
snapshot_device(),