90lvm/module-setup.sh: ignore DM_UDEV_DISABLE_DISK_RULES_FLAG=1

Ignore logical volumes, which have DM_UDEV_DISABLE_DISK_RULES_FLAG=1
set for the generation of hostonly cmdline parameter.
master
Harald Hoyer 2012-03-30 10:48:37 +02:00
parent 0e979d4829
commit 030b8a160f
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@ check() {
[[ $debug ]] && set -x [[ $debug ]] && set -x


check_lvm() { check_lvm() {
unset DM_VG_NAME local DM_VG_NAME DM_LV_NAME DM_UDEV_DISABLE_DISK_RULES_FLAG
unset DM_LV_NAME eval $(udevadm info --query=property --name=$1|egrep '(DM_VG_NAME|DM_LV_NAME|DM_UDEV_DISABLE_DISK_RULES_FLAG)=')
eval $(udevadm info --query=property --name=$1|egrep '(DM_VG_NAME|DM_LV_NAME)=') [[ "$DM_UDEV_DISABLE_DISK_RULES_FLAG" = "1" ]] && return 1
[[ ${DM_VG_NAME} ]] && [[ ${DM_LV_NAME} ]] || return 1 [[ ${DM_VG_NAME} ]] && [[ ${DM_LV_NAME} ]] || return 1
if ! strstr " ${_activated[*]} " " ${DM_VG_NAME}/${DM_LV_NAME} "; then if ! strstr " ${_activated[*]} " " ${DM_VG_NAME}/${DM_LV_NAME} "; then
if ! [[ $kernel_only ]]; then if ! [[ $kernel_only ]]; then