summaryrefslogtreecommitdiff
path: root/bin/cloud-init
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cloud-init')
-rwxr-xr-xbin/cloud-init4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index 715be4b5..b449ac95 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -265,7 +265,9 @@ def main_init(name, args):
else:
return (None, ["No instance datasource found."])
- if args.local:
+ if args.local and not init.ds_restored:
+ # if local mode and the datasource was not restored from cache
+ # (this is not first boot) then apply networking.
init.apply_network_config()
# Stage 6