Open
Description
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.