From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Remounting tmpfs Date: Tue, 09 Apr 2019 16:58:46 +0200 Message-ID: <877ec3fcnt.fsf@gnu.org> References: <80844c75-50c6-ff82-6693-db6af0f10551@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDsD6-0003R0-BL for help-guix@gnu.org; Tue, 09 Apr 2019 10:58:53 -0400 In-Reply-To: <80844c75-50c6-ff82-6693-db6af0f10551@fastmail.com> (7e9wc56emjakcm@s.rendaw.me's message of "Mon, 8 Apr 2019 04:33:51 +0900") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: 7e9wc56emjakcm@s.rendaw.me Cc: help-guix@gnu.org Hello, 7e9wc56emjakcm@s.rendaw.me skribis: > On a system I'm porting to guix I have 2GB tmpfs with subdirectories > like /tmpfs/etc that I remount to /etc with an overlay filesystem. > > The current way I do this in systemd is making a service dependency > between the /tmpfs and /etc mounts that mkdirs /tmpfs/etc and > /tmpfs/etc_work, but AFAICT filesystem definitions in guix can only have > filesystem dependencies. > > Are there any other ways I can do this without copying/pasting/modifying > gobs of core guix code into my system definition? Like somehow > appending (mkdir /tmpfs/etc) onto the tmpfs filesystem service start > procedure or something. In Guix /etc is mostly populated by =E2=80=9Cactivation programs=E2=80=9D, = which are generated from your config. So I=E2=80=99m not sure what you describe would make much sense. Now, you could try to add a file system declaration that mounts /etc, with (needed-for-boot? #t). HTH, Ludo=E2=80=99.