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.
This commit is contained in:
Bruce Leidl 2019-08-20 13:59:08 -04:00
parent 8799604266
commit 2e781e2183

View File

@ -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())
}
}