1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00

initrd: use pkgs.kmod for modprobe instead of busybox

Removes "Unknown symbol" errors while booting:

[    3.817788] bmp280_spi: Unknown symbol bmp280_regmap_config (err -2)
[    3.817844] bmp280_spi: Unknown symbol bmp280_common_probe (err -2)
[    3.823219] bmp280_spi: Unknown symbol bmp280_dev_pm_ops (err -2)
[    3.829247] bmp280_spi: Unknown symbol bmp180_regmap_config (err -2)
This commit is contained in:
Andrew Childs 2020-04-30 00:33:42 +09:00
parent ea7bad0879
commit 704a7e4eda

View File

@ -170,6 +170,10 @@ let
inherit (pkgs) udev;
in
''
# Copy modprobe.
copy_bin_and_libs ${pkgs.kmod}/bin/kmod
ln -sf kmod $out/bin/modprobe
# Copy udev.
copy_bin_and_libs ${udev}/lib/systemd/systemd-udevd
copy_bin_and_libs ${udev}/bin/udevadm