Make mkfs call more compatible

This commit is contained in:
Ettore Di Giacinto 2022-10-15 16:34:18 +00:00
parent ce6ef0573b
commit 4c073ca50c

View File

@ -136,7 +136,7 @@ func luksify(label string) error {
return err
}
out, err := sh(fmt.Sprintf("mkfs.ext4 %s -L %s", devMapper, label))
out, err := sh(fmt.Sprintf("mkfs.ext4 -L %s %s", label, devMapper))
if err != nil {
return fmt.Errorf("err: %w, out: %s", err, out)