From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20067: fix interpretation of grub configuration Date: Tue, 23 Feb 2016 14:45:36 +0100 Message-ID: <874mczk0an.fsf@gnu.org> References: <20150309203443.GA3438@venom> 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]:49459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYDHy-0005u2-4A for bug-guix@gnu.org; Tue, 23 Feb 2016 08:46:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYDHu-0007j6-T9 for bug-guix@gnu.org; Tue, 23 Feb 2016 08:46:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYDHu-0007iy-Kg for bug-guix@gnu.org; Tue, 23 Feb 2016 08:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYDHu-00064e-Fm for bug-guix@gnu.org; Tue, 23 Feb 2016 08:46:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20150309203443.GA3438@venom> ("=?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?="'s message of "Mon, 9 Mar 2015 21:34:43 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 20067@debbugs.gnu.org Tom=C3=A1=C5=A1 =C4=8Cech skribis: > Grub configuration interpretes `linux' as directory where is located > bzImage. If I enter file name instead, result configuration will be > wrong. The solution will be to not automatically append =E2=80=9C/bzImage=E2=80=9D= (and likewise for the initrd.) We could change places where =E2=80=98menu-entry=E2=80=99 is instantiated t= o: #~(string-append #$kernel "/bzImage") However, there=E2=80=99s the problem that the image name appears in the =E2=80=98parameters=E2=80=99 file of the system (as seen in the output of = =E2=80=98guix system build foo.scm=E2=80=99), where it is unevaluated. If we use =E2=80=98strin= g-append=E2=80=99 as above, a raw (string-append =E2=80=A6) sexp will appear in there, which is = not nice. To address this, an idea is to add =E2=80=9Cexpanders=E2=80=9D for gexps: g= exps already have =E2=80=9Ccompilers=E2=80=9D, and expanders would be similar except tha= t they would produce something possibly different from just the derivation=E2=80=99s out= put file name. For instance, we could write: (file-append kernel "/bzImage") and that would expand directly to: "/gnu/store/=E2=80=A6/bzImage" Ludo=E2=80=99.