From b5969a9bdd1769ae7dc56682c4dbb8bc8f2ab7c3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 14 Jul 2021 17:01:48 +0000 Subject: all: remove pointers to pkg.build.Params The struct pkg.build.Params is currently primarily passed on as a pointer, which leads make it hard to see the places, where it can (and should) actually be modified. Make it all more explicit by only passing pointer references to objects of this type when the object is expected to be modified by the function. In fact, at this moment there are no such situations. --- pkg/build/linux_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/build/linux_linux.go') diff --git a/pkg/build/linux_linux.go b/pkg/build/linux_linux.go index af34d6b22..0a59f3fd7 100644 --- a/pkg/build/linux_linux.go +++ b/pkg/build/linux_linux.go @@ -22,7 +22,7 @@ import ( // - ssh works without password (we don't copy the key) // - cmdline file is not supported (should be moved to kernel config) // - the kernel is stored in the image in /vmlinuz file. -func embedLinuxKernel(params *Params, kernelPath string) error { +func embedLinuxKernel(params Params, kernelPath string) error { if params.CmdlineFile != "" { return fmt.Errorf("cmdline file is not supported for linux images") } -- cgit mrf-deployment