summaryrefslogtreecommitdiff
path: root/upstart/cloud-init-container.conf
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-03-07 16:27:47 -0500
committerScott Moser <smoser@ubuntu.com>2013-03-07 16:27:47 -0500
commit3199df6e1489da03d51ac8a2a4574c27fd325189 (patch)
tree921700212c063d1b468a8ea2cac4f7df0f3a68d9 /upstart/cloud-init-container.conf
parent21aec9e44c27b9bf1c96314f0449fd39793d1c73 (diff)
parent8013c284e82349246b2274f5475c138323fd7c55 (diff)
downloadvyos-cloud-init-3199df6e1489da03d51ac8a2a4574c27fd325189.tar.gz
vyos-cloud-init-3199df6e1489da03d51ac8a2a4574c27fd325189.zip
merge from trunk
Diffstat (limited to 'upstart/cloud-init-container.conf')
-rw-r--r--upstart/cloud-init-container.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/upstart/cloud-init-container.conf b/upstart/cloud-init-container.conf
index 051c6e50..6bdbe77e 100644
--- a/upstart/cloud-init-container.conf
+++ b/upstart/cloud-init-container.conf
@@ -21,6 +21,12 @@ script
# if the all static network interfaces are already up, nothing to do
[ -f "$MARK_STATIC_NETWORK_EMITTED" ] && exit 0
+ # ifquery will exit failure if there is no /run/network directory.
+ # normally that would get created by one of network-interface.conf
+ # or networking.conf. But, it is possible that we're running
+ # before either of those have.
+ mkdir -p /run/network
+
# get list of all 'auto' interfaces. if there are none, nothing to do.
auto_list=$(ifquery --list --allow auto 2>/dev/null) || :
[ -z "$auto_list" ] && exit 0