aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-01-29 14:31:09 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-01-29 15:48:16 +0100
commit785bbf9f39813fafd09ba10e1d3a6a1f2ff291c2 (patch)
treead674b2ff4d048352adc0fe7af488ccde898367c /pkg/build/linux.go
parent536094275dcdd385d6ec666edfb9644f6842ab96 (diff)
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.
Diffstat (limited to 'pkg/build/linux.go')
-rw-r--r--pkg/build/linux.go7
1 files changed, 0 insertions, 7 deletions
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
}