Some Hardware needs initialization and killing modprobe or modprobe
scripts would harm the process.
Wants=remote-fs.target
After=remote-fs.target
ConditionPathExists=/etc/initrd-release
-ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-pivot
-ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cleanup
-ConditionKernelCommandLine=|rd.break=pre-pivot
-ConditionKernelCommandLine=|rd.break=cleanup
-ConditionKernelCommandLine=|rd.break
-ConditionPathExists=|/dev/root
-ConditionPathExists=|/dev/nfs
[Service]
Environment=DRACUT_SYSTEMD=1
[ -h /dev/root ] && rm -f -- /dev/root
[ -h /dev/nfs ] && rm -f -- /dev/nfs
+udevadm settle
+
+cnt=0
+while ! udevadm settle --timeout=0; do
+ info "udev still not settled. Waiting."
+ udevadm settle
+ cnt=$(($cnt+1))
+ [ $cnt -gt 10 ] && break
+done
+
+udevadm control --exit
+
exit 0