Skip to content

[BUG] Multiple symlinks cannot be made to point to the same destination #489

@pmengelbert

Description

@pmengelbert

Expected Behavior

You should be able to create multiple symlinks that point to the same location. For example:

image:
  post:
    symlinks:
      - oldpath: /bin/busybox
        newpath: /usr/bin/sh
      - oldpath: /bin/busybox
         newpath: /usr/bin/test

Actual Behavior

The spec format requires:

image:
  post:
    symlinks:
      /bin/busybox:
        path: /usr/bin/sh
      /bin/busybox:
         path: /usr/bin/test

This causes a yaml parsing error at best, and silently overwrites the /bin/busybox map key at worst.

Steps To Reproduce

n/a, see above.

Are you willing to submit PRs to contribute to this bug fix?

  • Yes, I am willing to implement it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions