From 785bbf9f39813fafd09ba10e1d3a6a1f2ff291c2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 29 Jan 2021 14:31:09 +0100 Subject: tools/create-gce-image.sh: setup ssh with empty password We used to use ssh keys, but there are no partiuclar advantages of using key over empty password. It just makes things more complex. And the new image building code in pkg/build does not support keys. --- pkg/build/linux.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'pkg/build/linux.go') diff --git a/pkg/build/linux.go b/pkg/build/linux.go index c35e5795e..f08455c39 100644 --- a/pkg/build/linux.go +++ b/pkg/build/linux.go @@ -122,13 +122,6 @@ func (linux) createImage(params *Params, kernelPath string) error { if err := osutil.CopyFile(filepath.Join(tempDir, "disk.raw"), imageFile); err != nil { return err } - keyFile := filepath.Join(params.OutputDir, "key") - if err := osutil.CopyFile(filepath.Join(tempDir, "key"), keyFile); err != nil { - return err - } - if err := os.Chmod(keyFile, 0600); err != nil { - return err - } return nil } -- cgit mrf-deployment