all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Build image for USB with custom kernel and packages
@ 2018-03-23 12:10 Pierre Neidhardt
  2018-03-23 12:17 ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2018-03-23 12:10 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]


Starting from <guix source>/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 ...
	
	(define-public 
	  (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?

-- 
Pierre Neidhardt

Chemist who falls in acid is absorbed in work.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-23 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-23 12:10 Build image for USB with custom kernel and packages Pierre Neidhardt
2018-03-23 12:17 ` Pierre Neidhardt
2018-03-23 20:14   ` Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.