azure-agent: add option to control auto mount

of resource disk.
This commit is contained in:
Jean-Baptiste Giraudeau 2018-04-17 16:04:04 +02:00
parent 0ebf6adcf7
commit 1d971b7a9f
No known key found for this signature in database
GPG key ID: A52188C6A8396FDB

View file

@ -66,6 +66,10 @@ in
default = false;
description = "Whether to enable verbose logging.";
};
mountResourceDisk = mkOption {
default = true;
description = "Whether the agent should format (ext4) and mount the resource disk to /mnt/resource.";
};
};
###### implementation
@ -112,7 +116,7 @@ in
Provisioning.ExecuteCustomData=n
# Format if unformatted. If 'n', resource disk will not be mounted.
ResourceDisk.Format=y
ResourceDisk.Format=${if cfg.mountResourceDisk then "y" else "n"}
# File system on the resource disk
# Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.