From 5fa0acfc14c3a5543089fa588b788102dd8edc77 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Tue, 29 Mar 2022 15:04:14 -0700 Subject: [PATCH] Fix dm-verity target naming format in linux guest When adding layer integrity checking feature for SCSI devices, the dm-verity device format naming was inconsistent with the already existing pmem based verity target. Make the naming consistent by changing `verity-scsi-...` to `dm-verity-scsi-...`. Signed-off-by: Maksim An --- internal/guest/storage/scsi/scsi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/guest/storage/scsi/scsi.go b/internal/guest/storage/scsi/scsi.go index 7af2db325d..8484f79ddb 100644 --- a/internal/guest/storage/scsi/scsi.go +++ b/internal/guest/storage/scsi/scsi.go @@ -45,7 +45,7 @@ var ( const ( scsiDevicesPath = "/sys/bus/scsi/devices" vmbusDevicesPath = "/sys/bus/vmbus/devices" - verityDeviceFmt = "verity-scsi-contr%d-lun%d-%s" + verityDeviceFmt = "dm-verity-scsi-contr%d-lun%d-%s" ) // fetchActualControllerNumber retrieves the actual controller number assigned to a SCSI controller