From aa88711b90478e71924f0be7794765581391577f Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 13 Aug 2010 11:15:58 -0400 Subject: 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. --- tools/uncloud-init | 7 +++++-- 1 file 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 "$@"; -- cgit v1.2.3