Re: [PATCH 2/6] lvm: Ensure LVM is initialised in non-hostonly mode.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 23.01.2013 21:15, schrieb Colin Guthrie:
> This is a bit of a hack, but it's needed if /usr is on LVM.
> ---
>  modules.d/90lvm/module-setup.sh          | 3 +++
>  modules.d/90lvm/non-hostonly-init-lvm.sh | 8 ++++++++
>  2 files changed, 11 insertions(+)
>  create mode 100644 modules.d/90lvm/non-hostonly-init-lvm.sh
> 
> diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
> index a537b1a..611379a 100755
> --- a/modules.d/90lvm/module-setup.sh
> +++ b/modules.d/90lvm/module-setup.sh
> @@ -49,6 +49,9 @@ install() {
>              sed -i -e 's/\(^[[:space:]]*\)use_lvmetad[[:space:]]*=[[:space:]]*[[:digit:]]/\1use_lvmetad = 0/' ${initdir}/etc/lvm/lvm.conf
>          fi
>      fi
> +    if ! [[ $hostonly ]]; then
> +        inst_hook pre-udev 30 "$moddir/non-hostonly-init-lvm.sh"
> +    fi
>  
>      inst_rules 11-dm-lvm.rules
>      # Gentoo ebuild for LVM2 prior to 2.02.63-r1 doesn't install above rules
> diff --git a/modules.d/90lvm/non-hostonly-init-lvm.sh b/modules.d/90lvm/non-hostonly-init-lvm.sh
> new file mode 100644
> index 0000000..2e9212c
> --- /dev/null
> +++ b/modules.d/90lvm/non-hostonly-init-lvm.sh
> @@ -0,0 +1,8 @@
> +#!/bin/sh
> +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
> +# ex: ts=8 sw=4 sts=4 et filetype=sh
> +
> +printf 'cancel_wait_for_dev /dev/non-hostonly-lvm; rm "$job";' \
> +    "$hookdir" >> $hookdir/initqueue/timeout/non-hostonly-lvm.sh
> +
> +wait_for_dev "/dev/non-hostonly-lvm"
> 

huh? what does this try to do? This only ensures, that the timeout is reached.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux