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

Re: /lib/udev/path_id no more exists in udev 174



Forgot to mention, this is related to live-boot

On Mon, Nov 21, 2011 at 2:47 PM, Baurzhan Muftakhidinov
<baurthefirst@gmail.com> wrote:
> Hi there!
>
> I found this bug
> Please see the patch
>
>
> --- scripts/live.old    2011-11-21 14:41:10.000000000 +0600
> +++ scripts/live        2011-11-21 14:41:40.000000000 +0600
> @@ -485,7 +485,7 @@
>  {
>        sysfs_path="${1#/sys}"
>
> -       if /lib/udev/path_id "${sysfs_path}" | egrep -q
> "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)"
> +       if /sbin/udevadm test-builtin path_id "${sysfs_path}" | egrep
> -q "ID_PATH=(usb|pci-[^-]*-(ide|sas|scsi|usb|virtio)|platform-sata_mv|platform-orion-ehci|platform-mmc|platform-mxsdhci)"
>        then
>                return 0
>        elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'
>


Reply to: