Merge pull request #2380 from dbnicholson/no-systemd-units

Don't fail build when systemd unit path not defined
This commit is contained in:
Colin Walters 2021-06-19 17:31:12 -04:00 committed by GitHub
commit a8eee7b27f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,7 @@ require_internal_units (const char *normal_dir,
const char *late_dir, const char *late_dir,
GError **error) GError **error)
{ {
#ifdef SYSTEM_DATA_UNIT_PATH
GCancellable *cancellable = NULL; GCancellable *cancellable = NULL;
glnx_autofd int normal_dir_dfd = -1; glnx_autofd int normal_dir_dfd = -1;
@ -137,6 +138,9 @@ require_internal_units (const char *normal_dir,
return glnx_throw_errno_prefix (error, "symlinkat"); return glnx_throw_errno_prefix (error, "symlinkat");
return TRUE; return TRUE;
#else
return glnx_throw (error, "Not implemented");
#endif
} }
/* Generate var.mount */ /* Generate var.mount */