unofficial mirror of help-guix@gnu.org 
 help / color / mirror / 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

* Re: Build image for USB with custom kernel and packages
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2018-03-23 12:17 UTC (permalink / raw)
  To: help-guix

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


Damn!  Been stuck on this issue for days and it's right after sending
the last e-mail that I realized that install.scm was not inside
GUIX_PACKAGE_PATH...

Problem solved.

-- 
Pierre Neidhardt

She always believed in the old adage -- leave them while you're looking good.
		-- Anita Loos, "Gentlemen Prefer Blondes"

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

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

* Re: Build image for USB with custom kernel and packages
  2018-03-23 12:17 ` Pierre Neidhardt
@ 2018-03-23 20:14   ` Leo Famulari
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2018-03-23 20:14 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix

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

On Fri, Mar 23, 2018 at 05:47:46PM +0530, Pierre Neidhardt wrote:
> 
> Damn!  Been stuck on this issue for days and it's right after sending
> the last e-mail that I realized that install.scm was not inside
> GUIX_PACKAGE_PATH...
> 
> Problem solved.

I'm glad you figured it out :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).