virtualisation.lxc: split meta and root
This commit is contained in:
parent
d203189dbf
commit
1c7a7f198c
1 changed files with 16 additions and 11 deletions
|
@ -67,16 +67,7 @@ in
|
|||
};
|
||||
|
||||
config = {
|
||||
system.build.tarball = mkForce (pkgs.callPackage ../../lib/make-system-tarball.nix {
|
||||
extraArgs = "--owner=0";
|
||||
|
||||
storeContents = [
|
||||
{
|
||||
object = config.system.build.toplevel;
|
||||
symlink = "none";
|
||||
}
|
||||
];
|
||||
|
||||
system.build.metadata = pkgs.callPackage ../../lib/make-system-tarball.nix {
|
||||
contents = [
|
||||
{
|
||||
source = toYAML "metadata.yaml" {
|
||||
|
@ -91,11 +82,25 @@ in
|
|||
};
|
||||
target = "/metadata.yaml";
|
||||
}
|
||||
] ++ templates.files;
|
||||
};
|
||||
|
||||
system.build.tarball = mkForce (pkgs.callPackage ../../lib/make-system-tarball.nix {
|
||||
extraArgs = "--owner=0";
|
||||
|
||||
storeContents = [
|
||||
{
|
||||
object = config.system.build.toplevel;
|
||||
symlink = "none";
|
||||
}
|
||||
];
|
||||
|
||||
contents = [
|
||||
{
|
||||
source = config.system.build.toplevel + "/init";
|
||||
target = "/sbin/init";
|
||||
}
|
||||
] ++ templates.files;
|
||||
];
|
||||
|
||||
extraCommands = "mkdir -p proc sys dev";
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue