Skip to content

Commit

Permalink
nixos/tests/filesystems-overlayfs: format
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Nov 5, 2024
1 parent cba277a commit fbaa0f5
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions nixos/tests/filesystems-overlayfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,42 @@ in

meta.maintainers = with lib.maintainers; [ nikstur ];

nodes.machine = { config, pkgs, ... }: {
boot.initrd.systemd.enable = true;
nodes.machine =
{ config, pkgs, ... }:
{
boot.initrd.systemd.enable = true;

virtualisation.fileSystems = {
"/initrd-overlay" = {
overlay = {
lowerdir = [ initrdLowerdir ];
upperdir = "/.rw-initrd-overlay/upper";
workdir = "/.rw-initrd-overlay/work";
virtualisation.fileSystems = {
"/initrd-overlay" = {
overlay = {
lowerdir = [ initrdLowerdir ];
upperdir = "/.rw-initrd-overlay/upper";
workdir = "/.rw-initrd-overlay/work";
};
neededForBoot = true;
};
neededForBoot = true;
};
"/userspace-overlay" = {
overlay = {
lowerdir = [ userspaceLowerdir ];
upperdir = "/.rw-userspace-overlay/upper";
workdir = "/.rw-userspace-overlay/work";
"/userspace-overlay" = {
overlay = {
lowerdir = [ userspaceLowerdir ];
upperdir = "/.rw-userspace-overlay/upper";
workdir = "/.rw-userspace-overlay/work";
};
};
"/ro-initrd-overlay" = {
overlay.lowerdir = [
initrdLowerdir
initrdLowerdir2
];
neededForBoot = true;
};
"/ro-userspace-overlay" = {
overlay.lowerdir = [
userspaceLowerdir
userspaceLowerdir2
];
};
};
"/ro-initrd-overlay" = {
overlay.lowerdir = [
initrdLowerdir
initrdLowerdir2
];
neededForBoot = true;
};
"/ro-userspace-overlay" = {
overlay.lowerdir = [
userspaceLowerdir
userspaceLowerdir2
];
};
};
};

testScript = ''
machine.wait_for_unit("default.target")
Expand Down

0 comments on commit fbaa0f5

Please sign in to comment.