The nut.powerfail script for openrc sets UPS_CTL to /usr/sbin/upsdrvctl which isn't available at shutdown if /usr is a separate partition. baselayout-1 uses /sbin/upsdrvctl to workaround this. nut.powerfail also uses runlevel to confirm that the current runlevel is 0 before running the UPS kill power command but this won't work either if /var is a separate partition. Since nut.powerfail is normally only in the shutdown runlevel anyway this check might not be needed. Also, if no power fail files are found such as during a normal shutdown nut.powerfail displays a warning that a UPS powerfail script was scheduled but it should just exit silently instead. Reproducible: Always Steps to Reproduce:
Created attachment 234797 [details, diff] nut.powerfail.patch A patch that fixes all the problems mentioned
Fixed in CVS, thanks for the patch.