From 6ae122f9598ef0bccf9979fecc4ef32d6bd90c69 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Tue, 4 Mar 2014 17:46:35 -0800 Subject: [PATCH] chore(rename): s/coreos-init/coreos/cloudinit/ --- cloudinit/ssh_key.go | 2 +- cloudinit/systemd.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudinit/ssh_key.go b/cloudinit/ssh_key.go index fb89219..598bd01 100644 --- a/cloudinit/ssh_key.go +++ b/cloudinit/ssh_key.go @@ -19,7 +19,7 @@ func AuthorizeSSHKeys(keys []string) error { // also ends with a newline joined := fmt.Sprintf("%s\n", strings.Join(keys, "\n")) - cmd := exec.Command("update-ssh-keys", "-u", "core", "-a", "coreos-init") + cmd := exec.Command("update-ssh-keys", "-u", "core", "-a", "coreos-cloudinit") stdin, err := cmd.StdinPipe() if err != nil { return err diff --git a/cloudinit/systemd.go b/cloudinit/systemd.go index 2b14a04..e7c5f7e 100644 --- a/cloudinit/systemd.go +++ b/cloudinit/systemd.go @@ -22,12 +22,12 @@ func StartUnit(name string) error { func ExecuteScript(scriptPath string) error { props := []dbus.Property{ - dbus.PropDescription("Unit generated and executed by coreos-init on behalf of user"), + dbus.PropDescription("Unit generated and executed by coreos-cloudinit on behalf of user"), dbus.PropExecStart([]string{"/bin/bash", scriptPath}, false), } base := path.Base(scriptPath) - name := fmt.Sprintf("coreos-init-%s.service", base) + name := fmt.Sprintf("coreos-cloudinit-%s.service", base) log.Printf("Creating transient systemd unit '%s'", name)