summaryrefslogtreecommitdiff
path: root/src/modules/oemid/IDJob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/oemid/IDJob.cpp')
-rw-r--r--src/modules/oemid/IDJob.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/modules/oemid/IDJob.cpp b/src/modules/oemid/IDJob.cpp
index 07ce1efad..16461b191 100644
--- a/src/modules/oemid/IDJob.cpp
+++ b/src/modules/oemid/IDJob.cpp
@@ -82,13 +82,12 @@ Calamares::JobResult IDJob::exec()
QString targetFile = QStringLiteral( "oem-id" );
QString rootMount = gs->value( "rootMountPoint" ).toString();
- static const char noRoot[] = "No rootMountPoint is set.";
- static const char yesRoot[] = "rootMountPoint is set:";
-
- QString targetPath;
-
+ // Don't bother translating internal errors
if ( rootMount.isEmpty() && Calamares::Settings::instance()->doChroot() )
- cWarning() << Logger::SubEntry << noRoot;
-
+ return Calamares::JobResult::internalError(
+ "OEM Batch Identifier",
+ "No rootMountPoint is set, but a chroot is required. "
+ "Is there a module before oemid that sets up the partitions?",
+ Calamares::JobResult::InvalidConfiguration );
return writeId( Calamares::Settings::instance()->doChroot() ? rootMount + targetDir : targetDir, targetFile, m_batchIdentifier );
}