summaryrefslogtreecommitdiff
path: root/upstart
diff options
context:
space:
mode:
authorharlowja <harlowja@virtualbox.rhel>2013-02-21 22:51:02 -0800
committerharlowja <harlowja@virtualbox.rhel>2013-02-21 22:51:02 -0800
commit575a084808db7d5ac607a848b018abe676e73a91 (patch)
tree34e179b0623074e6cd6fc03e4b3db001f8e493bf /upstart
parent9dfb60d3144860334ab1ad1d72920d962139461f (diff)
parentd4886b65549c886499141872a9928412a74bbea2 (diff)
downloadvyos-cloud-init-575a084808db7d5ac607a848b018abe676e73a91.tar.gz
vyos-cloud-init-575a084808db7d5ac607a848b018abe676e73a91.zip
Update to code on trunk.
Diffstat (limited to 'upstart')
-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