From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Adding operating-system field for a custom /etc/profile. Date: Tue, 24 Nov 2015 21:30:10 +0100 Message-ID: <87y4dnkunh.fsf@gnu.org> References: <877ftschjt.fsf@gmail.com> <87fv8fip01.fsf@gnu.org> <87d23j1bxk.fsf@gmail.com> <871tjyfnl8.fsf@gnu.org> <876199q4z1.fsf@gmail.com> <87ioca4ojo.fsf@gnu.org> <87lh9tvcws.fsf@gnu.org> <87h9kguwc4.fsf@gmail.com> <87ziy7d90z.fsf@gnu.org> <874mgfkxee.fsf@gmail.com> <87wptb5d1y.fsf@gnu.org> <87r3jisc76.fsf@gmail.com> <87lh9q1f2i.fsf@gnu.org> <877fl9q3gv.fsf@gmail.com> <87h9kdy6ty.fsf@gnu.org> <871tbh53rt.fsf@gmail.com> <87vb8sss7j.fsf@gnu.org> <87y4doscmg.fsf_-_@gmail.com> <87wpt7d0ls.fsf@gnu.org> <871tbfrxyo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1KEE-00089u-1V for guix-devel@gnu.org; Tue, 24 Nov 2015 15:30:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1KE8-00036i-VU for guix-devel@gnu.org; Tue, 24 Nov 2015 15:30:17 -0500 In-Reply-To: <871tbfrxyo.fsf@gmail.com> (Alex Kost's message of "Tue, 24 Nov 2015 22:36:47 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Ludovic Court=C3=A8s (2015-11-24 15:48 +0300) wrote: > >> Alex Kost skribis: [...] >>> Besides will the system really be broken? >> >> Yes. > > I don't agree with your points, so it is "No" for me. Alex, this is unproductive. Please let=E2=80=99s get back to work now. >> Anyway, I think the way forward is to make /etc/profile modular in >> similar fashion. What about starting with an /etc/profile service that >> can receive Bash snippets and paste them in the middle of the file, >> right before: >> >> if [ -n "$BASH_VERSION" -a -f /etc/bashrc ] >> then >> # Load Bash-specific initialization code. >> . /etc/bashrc >> fi >> >> Does that make sense? > > I agree that a modular /etc/profile would be great, but only if *any* > part of it can be changed or removed, otherwise this decision will have > the same problem: one day there will appear users who would like to > change the parts that cannot be changed. > > But still I prefer to have a straightforward way to set my own > /etc/profile. Or maybe it would be good to have even a more general > solution: a way to specify any file that goes to "/etc" dir, something > like this: > > (operating-system > ;; ... > (etc-files > ("hosts" (local-file "/home/me/guix/etc/hosts")) > ("profile" (local-file "/home/me/guix/bash/my-favourite-etc-profile")) > ("fstab" (local-file "/home/me/guix/etc/fstab")))) Please take a look at =E2=80=98etc-service=E2=80=99. It=E2=80=99s essentia= lly what you describe. > You will probably consider this decision evil, but for me it's a perfect > solution. For you, understood. > Sorry, but this is not what I want. I would like to have a full control > on any aspect of my system. I think you=E2=80=99re overreacting. I feel bad because in spite of several attempts, I=E2=80=99m failing to get us to focus on concrete proposal to mo= ve forward. I don=E2=80=99t know what to add. Ludo=E2=80=99.