[partition] mount only read-only

This commit is contained in:
Philip Müller 2018-11-02 23:42:27 +01:00
parent 4c73fc0f53
commit 70ebf4dd96

View File

@ -164,9 +164,8 @@ lookForFstabEntries( const QString& partitionPath )
{
FstabEntryList fstabEntries;
QTemporaryDir mountsDir;
mountsDir.setAutoRemove( false );
int exit = QProcess::execute( "mount", { 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" );