mirror of
https://github.com/parchlinux/calamares.git
synced 2025-03-01 05:15:44 -05:00
[libcalamares] After mount, sync to make sure things are settled
This commit is contained in:
parent
d08325d3d0
commit
93eb712824
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue