Skip to content

Conversation

@tych0
Copy link
Collaborator

@tych0 tych0 commented Apr 13, 2022

The problem here is as follows:

  1. user deletes the /bin -> /usr/bin symlink (e.g. via tar command without
    --keep-directory-symlink or an rsync without --keep-dirlinks)
  2. layer is created
  3. build on top of that layer fails because /bin doesn't have sh in it any
    more.

Both centos7 and ubuntu have this /bin -> /usr/bin construction, so let's
default to that.

Of course, because everything is wonderful, alpine only ships /bin/sh, and
does not have a /usr/bin -> /bin symlink, so stacker's own build breaks
without explicit shebangs. But best to use what downstream users expect.

Signed-off-by: Tycho Andersen tycho@tycho.pizza

The problem here is as follows:

1. user deletes the /bin -> /usr/bin symlink (e.g. via tar command without
   --keep-directory-symlink or an rsync without --keep-dirlinks)
2. layer is created
3. build on top of that layer fails because /bin doesn't have sh in it any
   more.

Both centos7 and ubuntu have this /bin -> /usr/bin construction, so let's
default to that.

Of course, because everything is wonderful, alpine only ships /bin/sh, and
does not have a /usr/bin -> /bin symlink, so stacker's own build breaks
without explicit shebangs. But best to use what downstream users expect.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
@tych0 tych0 merged commit f4484f8 into project-stacker:master Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants