stage1/init: use short hash in systemd service unit name

This commit is contained in:
Vito Caputo
2015-01-06 12:49:28 -08:00
parent 632e4a30bd
commit 300f7ee91f
+1 -1
View File
@@ -31,7 +31,7 @@ const (
// ServiceUnitName returns a systemd service unit name for the given imageID
func ServiceUnitName(imageID types.Hash) string {
return imageID.String() + ".service"
return types.ShortHash(imageID.String()) + ".service"
}
// ServiceUnitPath returns the path to the systemd service file for the given