Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

stage1: \n in the image manifest results in invalid systemd unit file #1639

@iaguis

Description

@iaguis

Capturing @alban's comment:

If the manifest has the following:

      "exec" : [
         "/bin/sh",
         "-c",
         "echo After \nExecStart=/bin/sh -c echo Before\nExecStartPre="
      ],

This gets converted to:

ExecStart="/appexec" "/opt/stage2/busybox/rootfs" "/" "/rkt/env/busybox" "0" "0" "/bin/sh" "-c" "echo After 
ExecStart=/bin/sh -c echo Before
ExecStartPre="

and systemd is complaining about unbalanced quoting and the pod freezes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions