This should be /lib/udev/rules.d/64-md-raid-assembly.rules
and not /usr/lib/udev/rules.d/64-md-raid-assembly.rules
While at it use the same approach as for GRMLBASE/50-lvm
in the previous commit, by creating an empty file
instead of just removing it.
-if ! [ -r "${target}/usr/lib/udev/rules.d/64-md-raid-assembly.rules" ] ; then
- echo "File /usr/lib/udev/rules.d/64-md-raid-assembly.rules doesn't exist, skipping execution of script."
+if ! [ -r "${target}/lib/udev/rules.d/64-md-raid-assembly.rules" ] ; then
+ echo "File /lib/udev/rules.d/64-md-raid-assembly.rules doesn't exist, skipping execution of script."
-echo "Removing /usr/lib/udev/rules.d/64-md-raid-assembly.rules to avoid automatic mdadm scanning"
-rm -f "${target}/usr/lib/udev/rules.d/64-md-raid-assembly.rules"
+echo "Removing /lib/udev/rules.d/64-md-raid-assembly.rules to avoid automatic mdadm scanning"
+echo '# this file was generated by grml-live script GRMLBASE/52-mdadm' > "${target}/lib/udev/rules.d/64-md-raid-assembly.rules"
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2