mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
environment: container: Work around read-only /etc/resolv.conf issue.
* guix/scripts/environment.scm (launch-environment/container): Mount /etc/resolv.conf as a writable file.
This commit is contained in:
parent
5eabbc3e90
commit
fe463dbcf7
1 changed files with 9 additions and 1 deletions
|
@ -406,7 +406,15 @@ (define* (launch-environment/container #:key command bash user-mappings
|
|||
(file-system-mapping
|
||||
(source file)
|
||||
(target file)
|
||||
(writable? #f))))
|
||||
;; XXX: On some GNU/Linux
|
||||
;; systems, /etc/resolv.conf is a
|
||||
;; symlink to a file in a tmpfs
|
||||
;; which, for an unknown reason,
|
||||
;; cannot be bind mounted
|
||||
;; read-only within the
|
||||
;; container.
|
||||
(writable?
|
||||
(string=? "/etc/resolv.conf")))))
|
||||
%network-configuration-files)
|
||||
'())
|
||||
;; Mappings for the union closure of all inputs.
|
||||
|
|
Loading…
Reference in a new issue