Add mdadm

  • Hi


    I'm trying to add mdadm-4.1 and follow the howto from:

    LibreELEC RAID support – Artem Butusov Blog


    Compiling mdadm fails with:

    ...

    /usr/bin/install -D /home/user/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/toolchain/bin/x86_64-libreelec-linux-gnu-strip -m 755 mdadm /home/user/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/.sysroot/mdadm.target/usr/sbin/mdadm

    /usr/bin/install: target '/home/user/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/.sysroot/mdadm.target/usr/sbin/mdadm' is not a directory

    make[1]: *** [Makefile:246: install] Error 1

    make[1]: Leaving directory '/home/user/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/mdadm-4.1'

    FAILURE: scripts/install mdadm has failed!


    So under '/home/user/LibreELEC.tv/build.LibreELEC-Generic.x86_64-9.2-devel/.sysroot/mdadm.target/usr' there are only the folders bin, include, lib, share.

    Why is the folder sbin not created and compiling is failing?

  • ^ that seems to build under LE master, so probably builds under LE 9.2.x as well. You'll probably want to extend the package with a default conf that's copied to /storage/.config/mdadm.conf.sample etc. etc. .. lots of prior art for that in the build-system.