From 300f7ee91f4565c9dae0605c792ec6fee8a951c0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 6 Jan 2015 12:49:28 -0800 Subject: [PATCH] stage1/init: use short hash in systemd service unit name --- stage1/init/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage1/init/path.go b/stage1/init/path.go index db6db01..cd85418 100644 --- a/stage1/init/path.go +++ b/stage1/init/path.go @@ -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