From: Pierre Neidhardt <ambrevar@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: Build image for USB with custom kernel and packages
Date: Fri, 23 Mar 2018 17:40:41 +0530 [thread overview]
Message-ID: <87woy30z7i.fsf@gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2018-03-23 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-23 12:10 Pierre Neidhardt [this message]
2018-03-23 12:17 ` Build image for USB with custom kernel and packages Pierre Neidhardt
2018-03-23 20:14 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87woy30z7i.fsf@gmail.com \
--to=ambrevar@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.