Generate empty /lib/udev/rules.d/69-lvm-metad.rules instead of removing the file
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 50-lvm
index e94fc58..4cecce4 100755 (executable)
@@ -14,8 +14,8 @@ if ! [ -r "${target}/lib/udev/rules.d/69-lvm-metad.rules" ] ; then
   exit 0
 fi
 
-echo "Removing /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning"
-rm -f "${target}/lib/udev/rules.d/69-lvm-metad.rules"
+echo "Clearing /lib/udev/rules.d/69-lvm-metad.rules to avoid automatic LVM scanning"
+echo '# this file was generated by grml-live script GRMLBASE/50-lvm' > "${target}/lib/udev/rules.d/69-lvm-metad.rules"
 
 ## END OF FILE #################################################################
 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2