Skip to content

Commit

Permalink
vm-builder: drop unused variables, format code
Browse files Browse the repository at this point in the history
Signed-off-by: Misha Sakhnov <misha@neon.tech>
  • Loading branch information
mikhail-sakhnov committed Dec 4, 2024
1 parent 5537aff commit 1abd54a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ docker-build-controller: docker-build-go-base ## Build docker image for NeonVM c
docker-build-runner: docker-build-go-base ## Build docker image for NeonVM runner
docker build \
--tag $(IMG_RUNNER) \
--build-arg TARGET_ARCH=$(TARGET_ARCH) \
--build-arg GO_BASE_IMG=$(GO_BASE_IMG) \
--file neonvm-runner/Dockerfile \
.
Expand Down
4 changes: 1 addition & 3 deletions vm-builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ func main() {
SpecBuild: "", // overridden below if spec != nil
SpecMerge: "", // overridden below if spec != nil
InittabCommands: nil, // overridden below if spec != nil
ShutdownHook: "", // overridden below if spec != nil
AgettyInitLine: getAgettyInitLine(*targetArch),
ShutdownHook: "", // overridden below if spec != nil
}

if len(imageSpec.Config.User) != 0 {
Expand Down Expand Up @@ -369,8 +369,6 @@ func main() {
{"vmstart", scriptVmStart},
{"vmshutdown", scriptVmShutdown},
{"inittab", scriptInitTab},
{"agetty-init-amd64", scriptAgettyInitAmd64},
{"agetty-init-arm64", scriptAgettyInitArm64},
{"vmacpi", scriptVmAcpi},
{"vminit", scriptVmInit},
{"vector.yaml", configVector},
Expand Down

0 comments on commit 1abd54a

Please sign in to comment.