[zfs] Export zpool so it can later be mounted at the correct location

This commit is contained in:
dalto 2021-11-09 07:42:39 -06:00
parent 2f145fcf44
commit 06b6263c24

View File

@ -183,6 +183,13 @@ ZfsJob::exec()
{
gs->insert( "zfs", datasetList );
}
// Export the zpool so it can be reimported at the correct local later
auto r = system->runCommand( { "zpool", "export", m_poolName }, std::chrono::seconds( 10 ) );
if ( r.getExitCode() != 0 )
{
cWarning() << "Failed to export pool" << m_poolName;
}
}
return Calamares::JobResult::ok();