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:
parent
8799604266
commit
2e781e2183
@ -89,7 +89,7 @@ impl Verity {
|
|||||||
let name = metainfo.realmfs_name().unwrap_or("unknown");
|
let name = metainfo.realmfs_name().unwrap_or("unknown");
|
||||||
format!("verity-realmfs-{}-{}", name, metainfo.verity_tag())
|
format!("verity-realmfs-{}-{}", name, metainfo.verity_tag())
|
||||||
} else {
|
} else {
|
||||||
format!("verity-{}", metainfo.image_type())
|
format!("verity-{}-{}", metainfo.image_type(), metainfo.verity_tag())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user