Mailinglist Archive: yast-devel (61 mails)

< Previous Next >
[yast-devel] Re: [Research] Call for ideas: parted vs. udev-events vs. kernel

Hello,

maily FYI because I don't know a solution

On May 25 17:06 Stefan Hundhammer wrote (excerpt):
Every once in a while, device nodes (in particular for partitions)
are not present after a seemingly harmless call like "parted -l",
not even after calling "udevadm settle".

In the Relax-and-Recover (rear) installer
we have the same kind of problems, see
https://github.com/rear/rear/issues/791

And FYI a somehow related issue is
https://github.com/rear/rear/issues/799


Brainstorming approach #1: Suspend udev

Something like this was tried in the rear installer, see
https://github.com/rear/rear/pull/518
and it had interesting complicated bad effects, see
https://github.com/rear/rear/issues/533
which lead to
https://bugzilla.opensuse.org/show_bug.cgi?id=914245
and
https://bugzilla.opensuse.org/show_bug.cgi?id=914311

In short:
For non-udev experts:
Don't touch how udev works ;-)


Brainstorming approach #3: Tactical sleep

I also tried to avoid that but meanwhile I think
it is needed (as some kind of fallback) in addition
to other stuff, cf.
https://github.com/rear/rear/issues/791#issuecomment-211318620
(excerpt):
--------------------------------------------------------------
Perhaps what is needed to make it really work reilably is

- "udevadm settle" plus
- waiting for the actual "thingy" plus
- retries of commands that need the actual "thingy"

--------------------------------------------------------------
where "waiting" and "retries" implicitly mean to sleep.


Kind Regards
Johannes Meixner
--
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
References