mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
[zfs] Add delay before creating the zpool
This commit is contained in:
parent
51a5c4de0f
commit
e3af4f3e26
1 changed files with 2 additions and 1 deletions
|
@ -79,8 +79,9 @@ ZfsJob::exec()
|
|||
}
|
||||
|
||||
// Create the zpool
|
||||
// zfs doesn't wait for the devices so pause for 2 seconds to ensure we give time for the device files to be created
|
||||
auto r
|
||||
= system->runCommand( { "sh", "-c", "zpool create " + m_poolOptions + " " + m_poolName + " " + deviceName },
|
||||
= system->runCommand( { "sh", "-c", "sleep 2 ; zpool create " + m_poolOptions + " " + m_poolName + " " + deviceName },
|
||||
std::chrono::seconds( 10 ) );
|
||||
if ( r.getExitCode() != 0 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue