Package: lvm2
Version: 2.03.22-1
Severity: normal

Dear Maintainer,

Thank you very much for maintaining Debian's lvm2
package.

Please allow me to draw your attention to a
possible improvement.

I humbly suggest reconciling 

    where lvm2 writes its rule files

        56-lvm and

        69-lvm

    with where its hook script

        /usr/share/initramfs-tools/hooks/lvm2

    looks for them.

As you can see below, lines 25 and 26 of the hook
script look in a path starting with "/lib"

[...]
25      elif [ -e /lib/udev/rules.d/$rules ]; then
26          cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
[...]

But they are in a path starting with "/usr".

You can see this is so by doing

    $ for f in /{etc,lib}/udev/rules.d/{56-lvm.rules,69-lvm.rules} ; do 
apt-file search "$f" ;done

    lvm2: /usr/lib/udev/rules.d/56-lvm.rules
    lvm2: /usr/lib/udev/rules.d/69-lvm.rules

I seem to have worked around the problem by
prefacing the paths in lines 25 and 26 in

    /usr/share/initramfs-tools/hooks/lvm2

with "/usr", like

25  elif [ -e /usr/lib/udev/rules.d/$rules ]; then
26      cp -p /usr/lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/

but I 

    dunno if there is an official path for rule
    files and

    suppose a compliant fix may depend on it.

Thanks again for maintaining Debian's lvm2
package!

Kind regards,
Kingsley

Reply via email to