Skip to content

Commit

Permalink
various: remove left-over rtc_cmos rootModule (#359416)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco authored Nov 27, 2024
2 parents 7535f25 + d232880 commit 357a340
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions nixos/lib/make-multi-disk-zfs-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ let
image = (
pkgs.vmTools.override {
rootModules =
[ "zfs" "9p" "9pnet_virtio" "virtio_pci" "virtio_blk" ] ++
(pkgs.lib.optional pkgs.stdenv.hostPlatform.isx86 "rtc_cmos");
[ "zfs" "9p" "9pnet_virtio" "virtio_pci" "virtio_blk" ];
kernel = modulesTree;
}
).runInLinuxVM (
Expand Down
3 changes: 1 addition & 2 deletions nixos/lib/make-single-disk-zfs-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ let
image = (
pkgs.vmTools.override {
rootModules =
[ "zfs" "9p" "9pnet_virtio" "virtio_pci" "virtio_blk" ] ++
(pkgs.lib.optional pkgs.stdenv.hostPlatform.isx86 "rtc_cmos");
[ "zfs" "9p" "9pnet_virtio" "virtio_pci" "virtio_blk" ];
kernel = modulesTree;
}
).runInLinuxVM (
Expand Down
3 changes: 0 additions & 3 deletions nixos/modules/system/boot/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ in
] ++ optionals pkgs.stdenv.hostPlatform.isx86 [
# Misc. x86 keyboard stuff.
"pcips2" "atkbd" "i8042"

# x86 RTC needed by the stage 2 init script.
"rtc_cmos"
]);

boot.initrd.kernelModules =
Expand Down
1 change: 0 additions & 1 deletion pkgs/build-support/vm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
, storeDir ? builtins.storeDir
, rootModules ?
[ "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_balloon" "virtio_rng" "ext4" "unix" "9p" "9pnet_virtio" "crc32c_generic" ]
++ pkgs.lib.optional pkgs.stdenv.hostPlatform.isx86 "rtc_cmos"
}:

let
Expand Down

0 comments on commit 357a340

Please sign in to comment.