Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
flatdeb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
  • Merge Requests 0
    • Merge Requests 0
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Commits
  • Simon McVittie
  • flatdeb
  • Merge Requests
  • !4

Merged
Opened Jan 24, 2020 by Frederic Danis@fdanisContributor

platformize: Fix systemd-nspawn error when running in gitlab CI

  • Overview 3
  • Commits 1
  • Changes 1

When running in gitlab CI the following error may occur:

platformize | Failed to register machine: Unit machine-root.scope already exists.

This can be fixed by preventing the systemd-nspawn container to register with systemd-machined, as wrote in systemd-nspawn's man page:

--register=
  Controls whether the container is registered with systemd-machined(8).
  Takes a boolean argument, which defaults to "yes". This option should be
  enabled when the container runs a full Operating System (more
  specifically: a system and service manager as PID 1), and is useful to
  ensure that the container is accessible via machinectl(1) and shown by
  tools such as ps(1). If the container does not run a service manager, it
  is recommended to set this option to "no".

Signed-off-by: Frédéric Danis frederic.danis@collabora.com

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: smcv/flatdeb!4
Source branch: wip/fdanis/fix_systemd-spawn_in_gitlab_ci

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.