On Fri, May 25, 2018 at 10:25:08AM +0200, Franck Bui wrote: > Hi Joey, > > On 05/25/2018 09:33 AM, joeyli wrote: > > > > Do you have good idea to inhibit the exit failure to avoid the subsequent > > activity be blocked? > > > > For the context the actual rule is: > > SUBSYSTEM=="memory", ACTION=="add", > PROGRAM=="/usr/bin/systemd-detect-virt", RESULT!="zvm", ... > > You can use PROGRAM=="/bin/sh -c '/usr/bin/systemd-detect-virt || :'" so > the exit status of systemd-detect-virt is explicitly ignored. > > I assume that if systemd-detect-virt fails then the value of RESULT will > be the empty string (you should check). It will be empty if -q is passed, and "none" without it. Zbyszek