If /lib/udev/rules.d/69-lvm-metad.rules was removed by a prior run of the unpatched script,
the patched script will fail to create the placeholder file.
Thanks: Dr. AndrĂ¡s Korn
Closes: https://github.com/grml/grml-live/issues/47
-if ! [ -r "${target}/lib/udev/rules.d/69-lvm-metad.rules" ] ; then
- echo "File /lib/udev/rules.d/69-lvm-metad.rules doesn't exist, skipping execution of script."
- exit 0
-fi
-
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"
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"