Skip to content

bump udev and clean up

Yegor Yefremov buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bump udev and clean uppackage/udev/Config.in package/udev/S10udev package/udev/libvolume_id.la.tmpl +1 more+36 -1921 reply
1/3bump udev and clean up+0 -05 replies
1/3bump udev and clean up+0 -01 reply
2/3util-linux: convert to autotarget and bump to 2.19.1package/util-linux/Config.in package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch package/util-linux/util-linux-no-nls-fix.patch +4 more+230 -5941 reply
3/3usbmount fixespackage/usbmount/Config.in package/usbmount/usbmount-fstype-detection-fix.patch package/usbmount/usbmount-rules-fix.patch +1 more+66 -44 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/3] bump udev and clean up

Following patches update udev to 172 and handle its dependencies.

Udev changed much compared with the current version in BR. Except eliminating obsolete patches, the startup script was also changed. There is no udevstart executable any more, udevadm manages communication with udevd instead. /dev/null is created either via devtmpfs of via device file, so no need to do it in the startup script.

usbmount 0.0.14.1 used vol_id executable, that was part of older udev version. vol_id was replaced by blkid, that is part of util-linux. So util-linux was also updated and usbmount selects both util-linux and blkid. blkid provided by BusyBox's blkid delivers not enough info about the block device, so util-linux is a must.

Futher usbmount issues were addressed:

1. recent blkid show not only file system type, but also partition type:

/dev/sdb1: VERSION="0.0" TYPE="ext2" USAGE="filesystem" PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0xc" PART_ENTRY_FLAGS="0x80" PART_ENTRY_NUMBER="1"

in this case parsing script took the value of partition type instead of file system type. Parsing was changed to search for " TYPE". It were very helpful, ff some one could provide better regular expression for this case.

2. udev rules for usbmount should react at "usb" subsystem, however it is reported as "block", so rules were also patched.

looking at device '/block/sdb/sdb1':

    KERNEL=="sdb1"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{partition}=="1"
    ATTR{start}=="32"
    ATTR{size}=="31457248"
    ATTR{ro}=="0"
    ATTR{alignment_offset}=="0"
    ATTR{discard_alignment}=="0"
    ATTR{stat}=="     403      235     3184      470        1        0        2
       0        0      450      460"
    ATTR{inflight}=="       0        0" 

Yegor