patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH] rootfs: make rootfs kernel configurable
@ 2023-01-09 14:34 Ivan Nikolaenko
  2023-01-10 20:31 ` Alyssa Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Nikolaenko @ 2023-01-09 14:34 UTC (permalink / raw)
  To: devel; +Cc: Ivan Nikolaenko

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



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

end of thread, other threads:[~2023-01-10 21:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-09 14:34 [PATCH] rootfs: make rootfs kernel configurable Ivan Nikolaenko
2023-01-10 20:31 ` Alyssa Ross
2023-01-10 21:20   ` Alyssa Ross

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).