disable encryption for new raspi setups (#2348)

* disable encryption for new raspi setups

* use config instead of OS_ARCH

* fixes from testing
This commit is contained in:
Aiden McClelland
2023-07-14 12:30:52 -06:00
committed by GitHub
parent 59d6795d9e
commit 90a9db3a91
6 changed files with 123 additions and 89 deletions

View File

@@ -125,7 +125,11 @@ async fn setup_or_init(cfg_path: Option<PathBuf>) -> Result<(), Error> {
} else {
RepairStrategy::Preen
},
DEFAULT_PASSWORD,
if guid.ends_with("_UNENC") {
None
} else {
Some(DEFAULT_PASSWORD)
},
)
.await?;
if tokio::fs::metadata(REPAIR_DISK_PATH).await.is_ok() {