Skip to content

Commit

Permalink
NO-ISSUE: print boot order after setting it (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsorya committed Sep 12, 2022
1 parent 10e9781 commit 9bec593
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -29,7 +29,7 @@ require (
github.com/thoas/go-funk v0.9.2
github.com/vincent-petithory/dataurl v1.0.0
golang.org/x/net v0.0.0-20220722155237-a158d28d115b
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.24.4
k8s.io/apimachinery v0.24.4
Expand Down
1 change: 0 additions & 1 deletion go.sum
Expand Up @@ -2159,7 +2159,6 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
4 changes: 4 additions & 0 deletions src/ops/ops.go
Expand Up @@ -192,6 +192,10 @@ func (o *ops) SetBootOrder(device string) error {
return err
}
o.handleDuplicateEntries(out)
_, err = o.ExecPrivilegeCommand(o.logWriter, "efibootmgr", "-l", o.getEfiFilePath())
if err != nil {
o.log.WithError(err).Errorf("Failed to show current boot order with efibootmgr")
}
return nil
}

Expand Down
3 changes: 0 additions & 3 deletions vendor/golang.org/x/sync/AUTHORS

This file was deleted.

3 changes: 0 additions & 3 deletions vendor/golang.org/x/sync/CONTRIBUTORS

This file was deleted.

70 changes: 68 additions & 2 deletions vendor/golang.org/x/sync/errgroup/errgroup.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Expand Up @@ -587,7 +587,7 @@ golang.org/x/net/idna
## explicit; go 1.11
golang.org/x/oauth2
golang.org/x/oauth2/internal
# golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
# golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
## explicit
golang.org/x/sync/errgroup
golang.org/x/sync/singleflight
Expand Down

0 comments on commit 9bec593

Please sign in to comment.