summaryrefslogtreecommitdiff
path: root/tools/uncloud-init
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-08-13 11:15:58 -0400
committerScott Moser <smoser@ubuntu.com>2010-08-13 11:15:58 -0400
commitaa88711b90478e71924f0be7794765581391577f (patch)
tree19e49e6ed21f6a5e72908b3b489f5eb5868403c0 /tools/uncloud-init
parent515b25be6fc4fa370653d56015542c1944f2cdc8 (diff)
downloadvyos-cloud-init-aa88711b90478e71924f0be7794765581391577f.tar.gz
vyos-cloud-init-aa88711b90478e71924f0be7794765581391577f.zip
uncloud-init: move marker file into /var/lib/cloud/sem
All other marker files by cloud-init live in /var/lib/cloud/sem it makes sense for uncloud-init's file to live there too.
Diffstat (limited to 'tools/uncloud-init')
-rwxr-xr-xtools/uncloud-init7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/uncloud-init b/tools/uncloud-init
index c0bc0b4f..0e2a03df 100755
--- a/tools/uncloud-init
+++ b/tools/uncloud-init
@@ -10,11 +10,14 @@
KEY="xupdate"
UMOUNT=""
RMDIR=""
-MARK=/root/uncloud-init-ran
+MARK=/var/lib/cloud/sem/uncloud-init.once
ROOT_RW=""
doexec() {
- [ -z "$ROOT_RW" ] || date > "${MARK}";
+ if [ -n "$ROOT_RW" ]; then
+ mkdir -p "${MARK%/*}";
+ date > "${MARK}";
+ fi
cleanup;
log "invoking /sbin/init $*"
exec /sbin/init "$@";