Creators of device-mapper maps/devices should set a device-mapper
UUID for their devices which include a prefix to identify the
subsystem responsible for the device. The format generally used is
$SUBSYSTEM-$MAPNAME, with subsystem being all caps.
---
 imgcreate/fs.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/imgcreate/fs.py b/imgcreate/fs.py
index f0e0885..a43c6e5 100644
--- a/imgcreate/fs.py
+++ b/imgcreate/fs.py
@@ -527,7 +527,8 @@ class DeviceMapperSnapshot(object):
                                              self.imgloop.device,
                                              self.cowloop.device)
 
-        args = ["/sbin/dmsetup", "create", self.__name, "--table", table]
+        args = ["/sbin/dmsetup", "create", self.__name,
+                "--uuid", "LIVECD-%s" % self.__name, "--table", table]
         if call(args) != 0:
             self.cowloop.cleanup()
             self.imgloop.cleanup()
-- 
1.7.3.2

--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to