3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #74378 from ttuegel/lxc-container

docker-container: Remove /etc symlink
This commit is contained in:
adisbladis 2020-04-25 16:25:15 +02:00 committed by GitHub
commit 1ca6909514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,8 @@
with lib;
let inherit (pkgs) writeScript; in
let
pkgs2storeContents = l : map (x: { object = x; symlink = "none"; }) l;
@ -30,7 +32,12 @@ in {
];
# Some container managers like lxc need these
extraCommands = "mkdir -p proc sys dev";
extraCommands =
let script = writeScript "extra-commands.sh" ''
rm etc
mkdir -p proc sys dev etc
'';
in script;
};
boot.isContainer = true;