From 31cd53a8bf1a8c5ec9629a134a69cdecbe6c2215 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 1 Apr 2020 16:24:30 +0200 Subject: [PATCH] scripts/GRMLBASE/50-lvm: unconditionally clear 69-lvm-metad.rules file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- etc/grml/fai/config/scripts/GRMLBASE/50-lvm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/etc/grml/fai/config/scripts/GRMLBASE/50-lvm b/etc/grml/fai/config/scripts/GRMLBASE/50-lvm index 4cecce4..9ec8199 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/50-lvm +++ b/etc/grml/fai/config/scripts/GRMLBASE/50-lvm @@ -9,11 +9,6 @@ set -u set -e -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" -- 2.1.4