anchor.diff:            $machine->mustSucceed(
                 "parted /dev/vda mklabel msdos",
                 "parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
  +              "udevadm settle",
                 "parted /dev/vda -- mkpart primary linux-swap 50MB 1024M",
  +              "udevadm settle",
                 "parted /dev/vda -- mkpart primary ext2 1024M -1s", # /
                 "udevadm settle",
                 "mkswap /dev/vda2 -L swap",
  
positive.code:         ''
            $machine->mustSucceed(
                "parted /dev/vda mklabel msdos",
                "parted /dev/vda -- mkpart primary linux-swap 1M 1024M",
                "parted /dev/vda -- mkpart primary ext2 1024M -1s",
                # It can take udev a moment to create /dev/vda*.
                "udevadm settle",
                "mkswap /dev/vda1 -L swap",
                "swapon -L swap",
  
negative.code:               "mount LABEL=nixos /mnt",
            );
          '';
        fileSystems = rootFS;
      };
    
  }
  