[partition] mount only read-only
This commit is contained in:
parent
5dd2673714
commit
7c6ff1a367
@ -165,7 +165,7 @@ lookForFstabEntries( const QString& partitionPath )
|
|||||||
FstabEntryList fstabEntries;
|
FstabEntryList fstabEntries;
|
||||||
QTemporaryDir mountsDir;
|
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
|
if ( !exit ) // if all is well
|
||||||
{
|
{
|
||||||
QFile fstabFile( mountsDir.path() + "/etc/fstab" );
|
QFile fstabFile( mountsDir.path() + "/etc/fstab" );
|
||||||
|
Loading…
Reference in New Issue
Block a user