enable trimming in luks (#2443)

This commit is contained in:
Aiden McClelland
2023-10-05 17:40:44 -06:00
committed by GitHub
parent 68c29ab99e
commit eb521b2332
2 changed files with 2 additions and 0 deletions

View File

@@ -126,6 +126,7 @@ pub async fn create_fs<P: AsRef<Path>>(
Command::new("cryptsetup")
.arg("-q")
.arg("luksOpen")
.arg("--allow-discards")
.arg(format!("--key-file={}", PASSWORD_PATH))
.arg(format!("--keyfile-size={}", password.len()))
.arg(&blockdev_path)