build-fhs-userenv-bubblewrap: use -m not -f for readlink

This change will let more inexistent paths be passed along, avoiding extremely weird and hard to debug behavior. See https://github.com/containers/bubblewrap/issues/520 for what I personally encountered.
This commit is contained in:
Stella 2022-07-16 01:34:01 +03:00 committed by Jonathan Ringer
parent 67c3fe62d3
commit fbf83cda37

View file

@ -71,7 +71,7 @@ let
"pki"
];
in concatStringsSep "\n "
(map (file: "--ro-bind-try $(${coreutils}/bin/readlink -f /etc/${file}) /etc/${file}") files);
(map (file: "--ro-bind-try $(${coreutils}/bin/readlink -m /etc/${file}) /etc/${file}") files);
# Create this on the fly instead of linking from /nix
# The container might have to modify it and re-run ldconfig if there are