virtualisation.lxc: split meta and root

This commit is contained in:
Maciej Krüger 2021-04-28 05:09:30 +02:00
parent d203189dbf
commit 1c7a7f198c
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -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";
});