From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Build image for USB with custom kernel and packages Date: Fri, 23 Mar 2018 17:40:41 +0530 Message-ID: <87woy30z7i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezLX2-0003pu-3H for help-guix@gnu.org; Fri, 23 Mar 2018 08:10:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezLWx-0008F9-4T for help-guix@gnu.org; Fri, 23 Mar 2018 08:10:52 -0400 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:34999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezLWw-0008EG-Uq for help-guix@gnu.org; Fri, 23 Mar 2018 08:10:47 -0400 Received: by mail-it0-x235.google.com with SMTP id v194-v6so2341363itb.0 for ; Fri, 23 Mar 2018 05:10:46 -0700 (PDT) Received: from mimimi ([103.61.255.46]) by smtp.gmail.com with ESMTPSA id t127sm4814351iod.48.2018.03.23.05.10.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Mar 2018 05:10:44 -0700 (PDT) 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: help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Starting from /gnu/system/install.scm, I can run > guix system disk-image install.scm and it works. Now if I add a custom kernel and a custom package to install.scm: (define-public my-linux (package (inherit linux-libre) (name "my-linux") (source ... =09 (define-public=20 (package (name "foo") (version version) (source ...) (build-system trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder ...)) (home-page "") (synopsis "Blah blah") (description "More blah blah") (license #f)))) And in the `operating-system` form: (operating-system (kernel my-linux) ;; Rest is untouched. I have to use more modules for this to work: #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system trivial) This fails to run: > guix system disk-image install.scm guile: warning: failed to install locale warning: failed to install locale: Invalid argument guix system: error: failed to load 'install.scm': No such file or directory Am I missing something or is it a bug? =2D-=20 Pierre Neidhardt Chemist who falls in acid is absorbed in work. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlq07sEACgkQm9z0l6S7 zH+kGgf+K5P1FSKR+KwI1ZdI9TVgQrhWFRKi8m24yIOpIrqMNwD5JkcbQ+qnsvIW zFrsq1ViLGvAia5ZHvymhYW4dooDYWcpfFsfI0EBxNN3/uFer0p9KOvPf5JTrpgJ 8zzgufxxxh1L9QVcek2n21HH1MQ8aiJtPUxsPS1lu+Fi53bJjeQTCsyFGB/J4plz eA6AY9Bkqs15HILE4fTxty6zJkZvWa+wDG2wuxdur8WeNyAwld5pXtVQ9624Uw6+ mRxCJH6GUkXZ/jFhN0MWrqq4Ee/9pj9PvU4RUiIz3vvQeHZDd9QEdiW8tHjs33Gz TVNQxS/KdTvUubYbCHf9tyMUXu+9ow== =0V/U -----END PGP SIGNATURE----- --=-=-=--