![kre](/assets/img/avatar_default.png)
rather than just ignoring the error. Don't bother attempting to clear the contents of /var/run if /var/run does not exist. In that case the mkdir of /var/run/lvm would have failed - correct that by using mkdir -p (which as a side effect will ensure /var/run exists and is available for later scripts to use if for some reason it did not exist.)