[libcalamares] After mount, sync to make sure things are settled
This commit is contained in:
parent
d08325d3d0
commit
93eb712824
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "Mount.h"
|
#include "Mount.h"
|
||||||
|
|
||||||
|
#include "partition/Sync.h"
|
||||||
#include "utils/CalamaresUtilsSystem.h"
|
#include "utils/CalamaresUtilsSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
@ -70,6 +71,7 @@ mount( const QString& devicePath, const QString& mountPoint, const QString& file
|
|||||||
|
|
||||||
auto r = CalamaresUtils::System::instance()->runCommand(
|
auto r = CalamaresUtils::System::instance()->runCommand(
|
||||||
CalamaresUtils::System::RunLocation::RunInHost, args, QString(), QString(), 10 );
|
CalamaresUtils::System::RunLocation::RunInHost, args, QString(), QString(), 10 );
|
||||||
|
sync();
|
||||||
return r.getExitCode();
|
return r.getExitCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user