GNU bug report logs -
#21272
partprobe does not wait for refresh of partition info
Previous Next
Full log
View this message in rfc822 format
On Fri, Sep 18, 2015 at 03:59:09PM -0400, Phil Susi wrote:
> On 8/17/2015 11:58 AM, Brian C. Lane wrote:
> > udev is responsible for making sure the device nodes are correct. You
> > can't depend on them being present without checking for them first. A
> > udevadm settle after partprobe may also help.
>
> IIRC, libparted contacts udev to wait for the dev node to be created so
> this shouldn't happen. At least if it was configured with udev.
>
That's only done for device-mapper devices. udev (especially
systemd-udev) can trigger async. actions so you have to watch out for
how parted is being called. See my patch for opening things read-only
initially for more details.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
This bug report was last modified 8 years and 76 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.