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
+5 -2
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
config = {
@@ -6,7 +6,10 @@
system.fsPackages = [ pkgs.e2fsprogs ];
# As of kernel 4.3, there is no separate ext3 driver (they're also handled by ext4.ko)
boot.initrd.availableKernelModules = [ "ext2" "ext4" ];
# No ext* modules are present on our aarch64, apparently (and maybe elsewhere).
boot.initrd.availableKernelModules =
lib.optionals (!pkgs.stdenv.hostPlatform.isAarch64)
[ "ext2" "ext4" ];
boot.initrd.extraUtilsCommands =
''