Hi Klaus,

On 10:14 Tue 25 Mar     , Klaus Aehlig wrote:
> 
> > -  kpartx -a -p- $blockdev > /dev/null
> > +  kpartx -a -s -p- $blockdev > /dev/null
> 
> When was the -s option added to kpartx? I still
> have a test cluster (running "Debian GNU/Linux 6.0")
> where kpartx does not accept the -s option.
> 
> However, if it is present in all stable versions of Debian
> (debootstrap is pretty debian-specific anyway) I'll go forward
> and push it.

Wheezy's version has it, it was introduced in multipath-tools 0.4.9, 
squeeze doesn't have it. The alternative would be to wait using:

 udevadm settle --exit-if-exists=/dev/<partition>

or (uglier) to spin in bash until the device appears.

Just for the record, this race would always fail on my system (kernel 
3.13 + systemd-udevd).

Reply via email to