From: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
To: devel@spectrum-os.org
Cc: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
Subject: [PATCH] rootfs: make rootfs kernel configurable
Date: Mon, 9 Jan 2023 16:34:33 +0200 [thread overview]
Message-ID: <20230109143433.1136386-1-ivan.nikolaenko@unikie.com> (raw)
This patch makes it possible to use custom linux kernel.
This is needed in case of porting Spectrum OS to the other
hardware than generic-x86.
To override rootfs kernel, define "spectrum_kernel" in the
customization overlay.
Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
---
host/rootfs/default.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix
index 0a84f55..b853250 100644
--- a/host/rootfs/default.nix
+++ b/host/rootfs/default.nix
@@ -81,7 +81,7 @@ let
imports = [ (modulesPath + "/profiles/all-hardware.nix") ];
});
- kernel = pkgs.linux_latest;
+ kernel = pkgs.spectrum_kernel or pkgs.linux_latest;
appvm = import ../../img/app {
inherit config;
--
2.34.1
next reply other threads:[~2023-01-09 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-09 14:34 Ivan Nikolaenko [this message]
2023-01-10 20:31 ` Alyssa Ross
2023-01-10 21:20 ` Alyssa Ross
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=20230109143433.1136386-1-ivan.nikolaenko@unikie.com \
--to=ivan.nikolaenko@unikie.com \
--cc=devel@spectrum-os.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 public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
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 NNTP newsgroup(s).