[partition] mount only read-only

This commit is contained in:
Philip Müller 2018-11-02 23:48:47 +01:00
parent 5dd2673714
commit 7c6ff1a367

View File

@ -165,7 +165,7 @@ lookForFstabEntries( const QString& partitionPath )
FstabEntryList fstabEntries;
QTemporaryDir mountsDir;
int exit = QProcess::execute( "mount" { "-o", "ro,noload", partitionPath, mountsDir.path() } );
int exit = QProcess::execute( "mount", { "-o", "ro,noload", partitionPath, mountsDir.path() } );
if ( !exit ) // if all is well
{
QFile fstabFile( mountsDir.path() + "/etc/fstab" );