Skip to content

Commit

Permalink
fix(openbsd): fix mtu on newline in hostname files (#5412)
Browse files Browse the repository at this point in the history
The /etc/hostname.* files should have the mtu on
a separate line otherwise it gives error:

  ifconfig: mtu: bad value

The lines are executed in order by ifconfig and
mtu should be on it's own line.

Fixes: GH-5413
  • Loading branch information
tobias-urdin authored and holmanb committed Aug 6, 2024
1 parent 72ba5c2 commit 690c828
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudinit/net/openbsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def write_config(self):
)
mtu = v.get("mtu")
if mtu:
content += " mtu %d" % mtu
content += "\nmtu %d" % mtu
content += "\n" + self.interface_routes
util.write_file(fn, content)

Expand Down
1 change: 1 addition & 0 deletions tools/.github-cla-signers
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ TheRealFalcon
thetoolsmith
timothegenzmer
tnt-dev
tobias-urdin
tomponline
tsanghan
tSU-RooT
Expand Down

0 comments on commit 690c828

Please sign in to comment.