diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-08-13 11:15:58 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-08-13 11:15:58 -0400 |
commit | aa88711b90478e71924f0be7794765581391577f (patch) | |
tree | 19e49e6ed21f6a5e72908b3b489f5eb5868403c0 | |
parent | 515b25be6fc4fa370653d56015542c1944f2cdc8 (diff) | |
download | vyos-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.
-rwxr-xr-x | tools/uncloud-init | 7 |
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 "$@"; |