From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 09 20:43:23 2016 Received: (at 22962) by debbugs.gnu.org; 10 Mar 2016 01:43:23 +0000 Received: from localhost ([127.0.0.1]:42098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adpdL-00032e-E7 for submit@debbugs.gnu.org; Wed, 09 Mar 2016 20:43:23 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:49425) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adpdJ-00032V-EZ for 22962@debbugs.gnu.org; Wed, 09 Mar 2016 20:43:22 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 268CC21A91; Wed, 9 Mar 2016 20:43:21 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Wed, 09 Mar 2016 20:43:21 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=famulari.name; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=iUtMh bGV64jeDfGy85NRRunBJUo=; b=E1+DEiCjxc+pC0kz5XZ/iWpnnC6BLnxdC9FFo f7FYSbpxUTQNh7lm1I4iliu+qEEerfjnwEQZM4zGj/b8uVTQgY6nwGTlsPQozAUH l1nFf3oygvUlfYFrhNITTZlgmeIcEEOMqRMV3SqCVCYs7QLmGZE1tV3vVqOHKWZz HcHepU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=iUtMhbGV64jeDfGy85NRRunBJUo=; b=bA3WG rk5jAOF6eu89jmkzNdjw2s3unlpL+fcFHCG1zJWBa8qaxhMOWLgXfHNlY80utZOj 02iB81Sli8hXZhIx2Tl7Zk16xIAciPd1aTx3KbG7nW88RHWW+yPtcOs3d21BaRYG wsmblSV0CMxIwX/ISGoKnza5taJLFBk1RZiKdY= X-Sasl-enc: MPSaFgM0Cmb2lQ4wlIpO6rr9XQRLNPbtCbN8EqbvfHx8 1457574200 Received: from localhost (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id CCEA1C0001A; Wed, 9 Mar 2016 20:43:20 -0500 (EST) Date: Wed, 9 Mar 2016 20:43:23 -0500 From: Leo Famulari To: Danny Milosavljevic Subject: Re: bug#22962: Something keeps overwriting /etc/hosts Message-ID: <20160310014323.GA29687@jasmine> References: <20160309214232.027164e0@scratchpost.org> <20160310002811.0b59a57f@scratchpost.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160310002811.0b59a57f@scratchpost.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22962 Cc: 22962@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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