From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: What is wrong with these few lines of guile code? Date: Tue, 31 Oct 2017 17:50:28 +0000 Message-ID: <20171031175028.71f40cc5@cbaines.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/x77oGJXQAU/HvAi4C43jGH="; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9agU-0005WS-Rg for guix-devel@gnu.org; Tue, 31 Oct 2017 13:50:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9agR-0003wD-O9 for guix-devel@gnu.org; Tue, 31 Oct 2017 13:50:42 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:53066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9agR-0003vp-Fj for guix-devel@gnu.org; Tue, 31 Oct 2017 13:50:39 -0400 In-Reply-To: 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" To: Hartmut Goebel Cc: guix-devel --Sig_/x77oGJXQAU/HvAi4C43jGH= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 31 Oct 2017 14:41:46 +0100 Hartmut Goebel wrote: > Hallo, >=20 > i replaced the code of gnu/system/install.scm(make-cow-store target) [1] > with the code below. Now when running this code (which is triggered by > "herd start cow-store /mnt" in the installation-os)|I get this error: > | >=20 > herd: exception caught while executing 'start' on service 'cow-store': > ERROR: Unbound variable: gexp >=20 > What is wrong with this code? (Parentheses are matching, of course :-) ... > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Mount the overlay, then ato= mically make it the store. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mount "none" "/.rw-store" "ov= erlay" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (string-append "lowerdir=3D" #$(%store-prefix) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 "upperdir=3D" #~rw-dir "," > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 "workdir=3D" #~work-dir)) Here, as rw-dir and work-dir are just inside the gexp, you don't need to ungexp, or gexp them (as is being done here), so I'd remove the #~. This matches the error you're getting, as #~ is short for (gexp ...) as I understand it. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mount "/.rw-store" #$(%store-= prefix) "" MS_MOVE) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (rmdir "/.rw-store")))) >=20 --Sig_/x77oGJXQAU/HvAi4C43jGH= Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAln4t+RfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdXkg/+N3gMPayL5h2WjB0yK2Jt7ELkUmwVt/eROx41Rw/FAEcOAH0kxdQIqdTF ge4I+wFNF6nlThDQx4E9R2TLl9LC9msVkHaLX6QtRc3TxM0DK85t0Q4FroXN+WgP xi4mONVIal85YnAwlkVUFO6SHWYRsElGY9Ox3Af7aRsWL2hD2FO9jKW0eN3XzPPp 5Abq8x5GgiP8j0xrhpFRMD5R68YfyyVQItKgYt73eCcSyeoEjARNAGiE9/ox666/ iVtlShhsikWZCziqt5FszIs7Sy/6bVdg/NGrfVOoiRnaTof/pKHY+H3vHy3u/YUk fdq3TGa6zOcR8endd2BS0SrA1nYdSGKAJpNAV7j4e27tcjAQ9nL1gBxXeDVhSbd3 jN1ZLUNIJ96u29iywZcTKyw5EwPEjJB3A7B0HZ+tYUeGQMfWseu7cN2diEMPyzEO hAEGYfASBOhW/KzH85yCHKSLu6uIXZERehbmYF8Zz1Il7Iz2nAhYDcQILa5mjzPS AGB2Kb1EOokIwDsNxFUgysbQ0+aEqRQi3EzsK3dt9umSx5a4vJDSCYMorbBPP8wI aJtSCOFDBQgdBLrayWIxzY7XHvIrO/vEISqfzgPNry/2RxIKeYH1KF0ZMUdFI39z b5r1bG86HJMJlmPa4/OShhiXGjo9cEDBWw29lfcHDufhDr4aKTg= =Sc0N -----END PGP SIGNATURE----- --Sig_/x77oGJXQAU/HvAi4C43jGH=--