From 817682c10ab42fcef0da96ebfce5b8a9bdba7eda Mon Sep 17 00:00:00 2001 From: David Lehman Date: Fri, 17 Dec 2010 10:21:02 -0600 Subject: [PATCH] Assign a device-mapper UUID w/ subsystem prefix to the dm snapshot. 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 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.11.4.GIT