nixos: fixup build of aarch64 minimal ISO (fixes #109252)

Perhaps it's not pretty nor precise; feel free to improve.
This commit is contained in:
Vladimír Čunát
2021-01-13 14:05:45 +01:00
parent 9534559209
commit 8ca33835ba
4 changed files with 41 additions and 18 deletions
+16 -6
View File
@@ -3,20 +3,24 @@
# enabled in the initrd. Its primary use is in the NixOS installation
# CDs.
{ ... }:
{ pkgs, lib,... }:
let
platform = pkgs.stdenv.hostPlatform;
in
{
# The initrd has to contain any module that might be necessary for
# supporting the most important parts of HW like drives.
boot.initrd.availableKernelModules =
[ # SATA/PATA support.
# SATA/PATA support.
lib.optionals (!platform.isAarch64) [ # not sure where else they're missing
"ahci"
"sata_sil24"
] ++ [
"ata_piix"
"sata_inic162x" "sata_nv" "sata_promise" "sata_qstor"
"sata_sil" "sata_sil24" "sata_sis" "sata_svw" "sata_sx4"
"sata_sil" "sata_sis" "sata_svw" "sata_sx4"
"sata_uli" "sata_via" "sata_vsc"
"pata_ali" "pata_amd" "pata_artop" "pata_atiixp" "pata_efar"
@@ -38,13 +42,19 @@
# Firewire support. Not tested.
"ohci1394" "sbp2"
] ++ lib.optionals (!platform.isAarch64) [ # not sure where else they're missing
# Virtio (QEMU, KVM etc.) support.
"virtio_net" "virtio_pci" "virtio_blk" "virtio_scsi" "virtio_balloon" "virtio_console"
] ++ [
# VMware support.
"mptspi" "vmw_balloon" "vmwgfx" "vmw_vmci" "vmw_vsock_vmci_transport" "vmxnet3" "vsock"
"mptspi" "vmxnet3" "vsock"
] ++ lib.optionals (!platform.isAarch64) [ # not sure where else they're missing
"vmw_vmci" "vmwgfx" "vmw_vsock_vmci_transport"
] ++ lib.optional platform.isx86 "vmw_balloon"
# Hyper-V support.
++ lib.optionals (!platform.isAarch64) [ # not sure where else they're missing
"hv_storvsc"
];