mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
allow for multiple disk repairs (#1375)
* allow for multiple disk repairs * actually reboot if reboot required * must_use
This commit is contained in:
@@ -202,7 +202,7 @@ pub async fn import<P: AsRef<Path>>(
|
||||
datadir: P,
|
||||
repair: RepairStrategy,
|
||||
password: &str,
|
||||
) -> Result<(), Error> {
|
||||
) -> Result<RequiresReboot, Error> {
|
||||
let scan = pvscan().await?;
|
||||
if scan
|
||||
.values()
|
||||
@@ -250,8 +250,7 @@ pub async fn import<P: AsRef<Path>>(
|
||||
.arg(guid)
|
||||
.invoke(crate::ErrorKind::DiskManagement)
|
||||
.await?;
|
||||
mount_all_fs(guid, datadir, repair, password).await?;
|
||||
Ok(())
|
||||
mount_all_fs(guid, datadir, repair, password).await
|
||||
}
|
||||
|
||||
#[instrument(skip(datadir, password))]
|
||||
|
||||
Reference in New Issue
Block a user