fix: pass --allow-discards to luksOpen for trim support (#3064)

This commit is contained in:
Remco Ros
2025-12-02 23:00:10 +01:00
committed by GitHub
parent db2fab245e
commit 7c772e873d

View File

@@ -287,6 +287,7 @@ pub async fn mount_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)