Fix network combinator with systemd resolved
This commit is contained in:
parent
2f8e84bf0a
commit
eaf7e343d8
3 changed files with 74 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ let
|
|||
runtime-deep-ro-bind
|
||||
share-ns
|
||||
time-zone
|
||||
try-readonly
|
||||
unsafe-add-raw-args
|
||||
write-text
|
||||
;
|
||||
|
|
@ -30,6 +31,7 @@ in
|
|||
(runtime-deep-ro-bind "/etc/nsswitch.conf")
|
||||
(runtime-deep-ro-bind "/etc/resolv.conf")
|
||||
(runtime-deep-ro-bind "/etc/ssl")
|
||||
(try-readonly "/run/systemd/resolve")
|
||||
(write-text "/etc/hostname" "${state.hostname}\n")
|
||||
(unsafe-add-raw-args "--hostname ${escape state.hostname}")
|
||||
] state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue