summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-03 12:19:44 +0200
committerGitHub <noreply@github.com>2019-10-03 12:19:44 +0200
commit86e94d95d020c34403bc99675318ed4e609ea3a0 (patch)
treef51d4193b450cdae38d12ca997232c4b7ae4c7f2 /src/nspawn
parent68e70ac2b27dcb5007fc4009553472f0b9700e66 (diff)
parent4e5aa79185d93d20defe1e371e33f89b86d93a3d (diff)
downloadsystemd-86e94d95d020c34403bc99675318ed4e609ea3a0.tar.gz
systemd-86e94d95d020c34403bc99675318ed4e609ea3a0.tar.bz2
systemd-86e94d95d020c34403bc99675318ed4e609ea3a0.zip
Merge pull request #13246 from keszybz/add-SystemdOptions-efi-variable
Add efi variable to augment /proc/cmdline
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn-cgroup.c1
-rw-r--r--src/nspawn/nspawn.c2
-rw-r--r--src/nspawn/test-patch-uid.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c
index 0462b46413..f5048d9473 100644
--- a/src/nspawn/nspawn-cgroup.c
+++ b/src/nspawn/nspawn-cgroup.c
@@ -3,6 +3,7 @@
#include <sys/mount.h>
#include "alloc-util.h"
+#include "cgroup-setup.h"
#include "fd-util.h"
#include "fileio.h"
#include "format-util.h"
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 0737517ddc..0cd960157c 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -4761,7 +4761,7 @@ static int run(int argc, char *argv[]) {
if (r < 0)
goto finish;
- r = cg_unified_flush();
+ r = cg_unified();
if (r < 0) {
log_error_errno(r, "Failed to determine whether the unified cgroups hierarchy is used: %m");
goto finish;
diff --git a/src/nspawn/test-patch-uid.c b/src/nspawn/test-patch-uid.c
index b50f0990d8..a6829629b4 100644
--- a/src/nspawn/test-patch-uid.c
+++ b/src/nspawn/test-patch-uid.c
@@ -5,8 +5,8 @@
#include "log.h"
#include "nspawn-patch-uid.h"
#include "user-util.h"
+#include "string-util.h"
#include "tests.h"
-#include "util.h"
int main(int argc, char *argv[]) {
uid_t shift, range;