chroot calls are now generic "target env" calls.

This commit is contained in:
Teo Mrnjavac 2015-08-06 11:57:01 +02:00
parent da79082b13
commit bf885d65db
9 changed files with 74 additions and 74 deletions

View file

@ -57,11 +57,11 @@ SetTimezoneJob::exec()
tr( "Bad path: %1" ).arg( zoneFile.absolutePath() ) );
// Make sure /etc/localtime doesn't exist, otherwise symlinking will fail
CalamaresUtils::chrootCall( { "rm",
CalamaresUtils::targetEnvCall( { "rm",
"-f",
localtimeSlink } );
int ec = CalamaresUtils::chrootCall( { "ln",
int ec = CalamaresUtils::targetEnvCall( { "ln",
"-s",
zoneinfoPath,
localtimeSlink } );