[partition] mount only read-only
This commit is contained in:
parent
4c73fc0f53
commit
70ebf4dd96
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user