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;
|
with lib;
|
||||||
|
|
||||||
|
let inherit (pkgs) writeScript; in
|
||||||
|
|
||||||
let
|
let
|
||||||
pkgs2storeContents = l : map (x: { object = x; symlink = "none"; }) l;
|
pkgs2storeContents = l : map (x: { object = x; symlink = "none"; }) l;
|
||||||
|
|
||||||
|
@ -30,7 +32,12 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some container managers like lxc need these
|
# 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;
|
boot.isContainer = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user