From 2e781e21833bc6ad69e5976016589cfb962e954a Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Tue, 20 Aug 2019 13:59:08 -0400 Subject: [PATCH] Add verity-tag field to verity devices for image types other than realmfs This prevents device name collision when multiple images of the same type are mounted. --- libcitadel/src/verity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcitadel/src/verity.rs b/libcitadel/src/verity.rs index 8e315ad..0f02d7d 100644 --- a/libcitadel/src/verity.rs +++ b/libcitadel/src/verity.rs @@ -89,7 +89,7 @@ impl Verity { let name = metainfo.realmfs_name().unwrap_or("unknown"); format!("verity-realmfs-{}-{}", name, metainfo.verity_tag()) } else { - format!("verity-{}", metainfo.image_type()) + format!("verity-{}-{}", metainfo.image_type(), metainfo.verity_tag()) } }