blob: 5def043ddec6fbc0031fa81d4790b6f277e1ee6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# cloud-init - the initial cloud-init job
# crawls metadata service, emits cloud-config
start on mounted MOUNTPOINT=/ and mounted MOUNTPOINT=/run
task
console output
script
lfin=/run/cloud-init/local-finished
ret=0
cloud-init init --local || ret=$?
[ -r /proc/uptime ] && read up idle < /proc/uptime || up="N/A"
echo "$ret up $up" > "$lfin"
exit $ret
end script
|