feat: add /tmp
Examples of programs that fail when /tmp doesn't exist: - terraform - anything using mktemp and similar helpers
This commit is contained in:
parent
15f79e1364
commit
7433d620bb
1 changed files with 7 additions and 5 deletions
|
@ -133,14 +133,16 @@ let
|
||||||
name = "bulk-layers";
|
name = "bulk-layers";
|
||||||
paths = allContents.contents;
|
paths = allContents.contents;
|
||||||
|
|
||||||
# Ensure that there is always a /usr/bin/env for shell scripts
|
# Provide a few essentials that many programs expect:
|
||||||
# that require it.
|
# - a /tmp directory,
|
||||||
|
# - a /usr/bin/env for shell scripts that require it.
|
||||||
#
|
#
|
||||||
# Note that images which do not actually contain `coreutils` will
|
# Note that in images that do not actually contain `coreutils`,
|
||||||
# still have this symlink, but it will be dangling.
|
# /usr/bin/env will be a dangling symlink.
|
||||||
#
|
#
|
||||||
# TODO(tazjin): Don't link this if coreutils is not included.
|
# TODO(tazjin): Don't link /usr/bin/env if coreutils is not included.
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
mkdir -p $out/tmp
|
||||||
mkdir -p $out/usr/bin
|
mkdir -p $out/usr/bin
|
||||||
ln -s ${coreutils}/bin/env $out/usr/bin/env
|
ln -s ${coreutils}/bin/env $out/usr/bin/env
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue