Use the correct file to write things into
This commit is contained in:
parent
0f9496babe
commit
60eb9cfae6
@ -65,7 +65,7 @@ Calamares::JobResult SetHostNameJob::exec()
|
|||||||
hostfile.close();
|
hostfile.close();
|
||||||
|
|
||||||
QFile hostsfile( destDir + "/etc/hosts" );
|
QFile hostsfile( destDir + "/etc/hosts" );
|
||||||
if ( !hostfile.open( QFile::WriteOnly ) )
|
if ( !hostsfile.open( QFile::WriteOnly ) )
|
||||||
{
|
{
|
||||||
cLog() << "Can't write to hosts file";
|
cLog() << "Can't write to hosts file";
|
||||||
return Calamares::JobResult::error( tr( "Cannot write hostname to target system" ) );
|
return Calamares::JobResult::error( tr( "Cannot write hostname to target system" ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user