Skip to content

Formatting new disks on GCE doesn't work: mkfs.auto not found #755

Open
@P-E-Meunier

Description

@P-E-Meunier

Since my setup of NixOps on GCE is relatively unstable, I tried to add a disk (managed by the Google interface, not by NixOps) so that I don't lose too much data.

Here are relevant portions of my deployment file:

  deployment.gce = credentials // {
    machineName = "blabla";
    region = "some-region";
    instanceType = "instance-type";
    tags = [ "http-server" "https-server" ];
    ipAddress = "my-ip";
    blockDeviceMapping."/dev/sdb" = { disk = "my-data"; };
  };
  fileSystems."/var/data" = {
    autoFormat = true;
    device = "/dev/sdb";
  };

The autoFormat option is not ignored, but the systemd service supposed to format that disk cannot find mkfs.auto. If I format it manually though, it gets mounted on reboot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions