From c6adf8175a42c5d479d60142fb75651e88efee6e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 7 Jun 2024 11:03:00 -0400 Subject: [PATCH] Try processing driver disks before udevadm invocation --- .../lib/dracut/hooks/pre-trigger/01-confluent.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh index 8701cc7e..62f406ed 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh @@ -1,6 +1,13 @@ #!/bin/sh [ -e /tmp/confluent.initq ] && return 0 . /lib/dracut-lib.sh +if [ -f /tmp/dd_disk ]; then + for dd in $(cat /tmp/dd_disk); do + if [ -e $dd ]; then + driver-updates --disk $dd $dd + fi + done +fi setsid sh -c 'exec bash <> /dev/tty2 >&0 2>&1' & udevadm trigger udevadm trigger --type=devices --action=add @@ -20,13 +27,6 @@ function confluentpython() { /usr/bin/python2 $* fi } -if [ -f /tmp/dd_disk ]; then - for dd in $(cat /tmp/dd_disk); do - if [ -e $dd ]; then - driver-updates --disk $dd $dd - fi - done -fi vlaninfo=$(getarg vlan) if [ ! -z "$vlaninfo" ]; then vldev=${vlaninfo#*:}