diff --git a/target/linux/x86/base-files/etc/init.d/mdadm_hack b/target/linux/x86/base-files/etc/init.d/mdadm_hack new file mode 100755 index 0000000000..19d438634f --- /dev/null +++ b/target/linux/x86/base-files/etc/init.d/mdadm_hack @@ -0,0 +1,10 @@ +#!/bin/sh /etc/rc.common +# work around mdadm create /dev/md* fail +# Copyright (C) 2022 jjm2473 + +START=12 + +boot() { + [ -f /proc/mdstat ] || modprobe md_mod + mount --bind /dev/full /sys/module/md_mod/parameters/new_array +}