mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/image/repart-verity-store: mount nix-store in the module
You always need this for the image to be bootable so lets do it in the image and not in the test
This commit is contained in:
@@ -89,6 +89,12 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/nix/store" = lib.mkDefault {
|
||||
device = "/usr/nix/store";
|
||||
fsType = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
image.repart.partitions = {
|
||||
# dm-verity hash partition
|
||||
${cfg.partitionIds.store-verity}.repartConfig = {
|
||||
|
||||
@@ -18,18 +18,12 @@
|
||||
{
|
||||
imports = [ ../modules/image/repart.nix ];
|
||||
|
||||
virtualisation.fileSystems = lib.mkVMOverride {
|
||||
virtualisation.fileSystems = lib.mkVMOverride { };
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
fsType = "tmpfs";
|
||||
options = [ "mode=0755" ];
|
||||
};
|
||||
|
||||
# bind-mount the store
|
||||
"/nix/store" = {
|
||||
device = "/usr/nix/store";
|
||||
fsType = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
};
|
||||
|
||||
image.repart = {
|
||||
|
||||
Reference in New Issue
Block a user