mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
Use the correct file to write things into
This commit is contained in:
parent
0f9496babe
commit
60eb9cfae6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue