Skip to content

Commit 9f9dfdc

Browse files
Formatting device with luks1 always (#171)
Signed-off-by: bhagyashree_sarawate <[email protected]>
1 parent 789bc8d commit 9f9dfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ func createLinuxDevice(volume *model.Volume) (dev *model.Device, err error) {
528528
if !isLuksDev {
529529
log.Infof("Device %s is a new device. LUKS formatting it...", originalDevPath)
530530
_, _, err := util.ExecCommandOutputWithStdinArgs("cryptsetup",
531-
[]string{"luksFormat", "--batch-mode", originalDevPath},
531+
[]string{"luksFormat", "--type", "luks1", "--batch-mode", originalDevPath},
532532
[]string{volume.EncryptionKey})
533533
if err != nil {
534534
err = fmt.Errorf("LUKS format command failed with error: %v", err)

0 commit comments

Comments
 (0)