Skip to content

Commit

Permalink
MEN-3684: Switch to fw_setenv script syntax which libubootenv supports.
Browse files Browse the repository at this point in the history
Specifically, it means using:

```
bootcount=0
```

instead of:

```
bootcount 0
```

Luckily, this is a backwards compatible change, as both the original
fw-utils based on U-Boot, as well as fw_setenv from
grub-mender-grubenv already support this syntax.

Changelog: Add support for libubootenv as boot loader user space tools
provider.

Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
(cherry picked from commit b250739)
  • Loading branch information
kacf committed Jul 3, 2020
1 parent 146ad92 commit 9ae8baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/bootenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (e *UBootEnv) WriteEnv(vars BootVars) error {
return err
}
for k, v := range vars {
_, err = fmt.Fprintf(pipe, "%s %s\n", k, v)
_, err = fmt.Fprintf(pipe, "%s=%s\n", k, v)
if err != nil {
log.Error("Error while setting U-Boot variable: ", err)
pipe.Close()
Expand Down

0 comments on commit 9ae8baf

Please sign in to comment.