forked from mirrors/nixpkgs
Merge pull request #74378 from ttuegel/lxc-container
docker-container: Remove /etc symlink
This commit is contained in:
commit
1ca6909514
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue