[Ovirt-devel] [PATCH node 2/6] add LVM filter support in initrd
Joey Boggs
jboggs at redhat.com
Fri Oct 2 01:58:39 UTC 2009
> diff --git a/scripts/ovirt-config-boot b/scripts/ovirt-config-boot
> index 2961f76..7c5943b 100755
> --- a/scripts/ovirt-config-boot
> +++ b/scripts/ovirt-config-boot
> @@ -108,6 +108,19 @@ ovirt_boot_setup() {
> init_script=sbin/real-init
> fi
> sed -i '/^\/sbin\/udev.*trigger/ a \
> +filter=\
> +for o in `cat /proc/cmdline` ; do\
> + case $o in\
> + filter=*)\
> + filter=${o#filter=}\
> + ;;\
> + esac\
> +done\
> +if [ -n "$filter" ]; then\
> + mkdir -p /etc/lvm\
> + echo "devices { filter = [ \\\"a|^$filter|\\\", \\\"r|.*|\\\" ] }" > /etc/lvm/lvm.conf\
> +fi\
> +
>
This extra empty line ^^ causes the install to hang for me on local
disk. Take it out and it installs fine. I'm hitting another issue where
the rebuilt initrd causes the boot to hang like we've seen before right
after starting udev. Been a long night, so I'll keep working on it in
the morning. Have you ran into similar issues during testing?
More information about the ovirt-devel
mailing list