unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 22962@debbugs.gnu.org
Subject: bug#22962: Something keeps overwriting /etc/hosts
Date: Wed, 9 Mar 2016 20:43:23 -0500	[thread overview]
Message-ID: <20160310014323.GA29687@jasmine> (raw)
In-Reply-To: <20160310002811.0b59a57f@scratchpost.org>

On Thu, Mar 10, 2016 at 12:28:11AM +0100, Danny Milosavljevic wrote:
> If I make it immutable, I get the following message on guix system reconfigure ... :
> 
>   guix system: error: copy-file: Permission denied: "/etc/hosts"
> 
> Aha!

I think that on GuixSD, the hosts file is generated from the system
configuration, specifically the 'hosts-file' field, which is mentioned
in section 7.2.2 Operating System Reference [0].

I assume that the resulting file is recreated each time you reconfigure. 

In that case, you'd want to leave the file /etc/hosts alone, and make
your changes in the operating system configuration.

I say "I think" and "I assume" because I haven't actually used
'hosts-file' yet, nor have I looked at that part of the code.

Does that help?

[0]
https://www.gnu.org/software/guix/manual/guix.html#operating_002dsystem-Reference

  reply	other threads:[~2016-03-10  1:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09 20:42 bug#22962: Something keeps overwriting /etc/hosts Danny Milosavljevic
2016-03-09 23:28 ` Danny Milosavljevic
2016-03-10  1:43   ` Leo Famulari [this message]
2016-03-10  8:39     ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160310014323.GA29687@jasmine \
    --to=leo@famulari.name \
    --cc=22962@debbugs.gnu.org \
    --cc=dannym@scratchpost.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).