mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fix: pass --allow-discards to luksOpen for trim support (#3064)
This commit is contained in:
@@ -287,6 +287,7 @@ pub async fn mount_fs<P: AsRef<Path>>(
|
|||||||
Command::new("cryptsetup")
|
Command::new("cryptsetup")
|
||||||
.arg("-q")
|
.arg("-q")
|
||||||
.arg("luksOpen")
|
.arg("luksOpen")
|
||||||
|
.arg("--allow-discards")
|
||||||
.arg(format!("--key-file={}", PASSWORD_PATH))
|
.arg(format!("--key-file={}", PASSWORD_PATH))
|
||||||
.arg(format!("--keyfile-size={}", password.len()))
|
.arg(format!("--keyfile-size={}", password.len()))
|
||||||
.arg(&blockdev_path)
|
.arg(&blockdev_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user