summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceAzure.py
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2019-04-18 16:08:20 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-04-18 16:08:20 +0000
commit937555fd422edf8235430afab3c0ab69f9e3b3a4 (patch)
tree4f058ebe6e56f17c490f89da4c5f8a534464afab /cloudinit/sources/DataSourceAzure.py
parent9fc682c9ebbccab5e958eb882636d969be88beb9 (diff)
downloadvyos-cloud-init-937555fd422edf8235430afab3c0ab69f9e3b3a4.tar.gz
vyos-cloud-init-937555fd422edf8235430afab3c0ab69f9e3b3a4.zip
mount_cb: do not pass sync and rw options to mount
On FreeBSD, mount_cd9660 does not accept the sync option that is enabled by default. In addition, the sync is only useful with the `rw` mode. However the `rw` mode was never used. This patch removes the `rw` and `sync` parameter of `mount_cb` to simplify the code base and resolve the FreeBSD issue. LP: #1645824
Diffstat (limited to 'cloudinit/sources/DataSourceAzure.py')
-rwxr-xr-xcloudinit/sources/DataSourceAzure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index 76b16616..64165259 100755
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -407,7 +407,7 @@ class DataSourceAzure(sources.DataSource):
elif cdev.startswith("/dev/"):
if util.is_FreeBSD():
ret = util.mount_cb(cdev, load_azure_ds_dir,
- mtype="udf", sync=False)
+ mtype="udf")
else:
ret = util.mount_cb(cdev, load_azure_ds_dir)
else: