From 517242df476df7e55bb9edb0a824cec0e1c2c358 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 7 Jun 2024 11:36:39 -0400 Subject: [PATCH] Avoid double run of driver disk content --- .../usr/lib/dracut/hooks/pre-trigger/01-confluent.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 62f406ed..84b75451 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,14 +1,16 @@ #!/bin/sh [ -e /tmp/confluent.initq ] && return 0 . /lib/dracut-lib.sh +setsid sh -c 'exec bash <> /dev/tty2 >&0 2>&1' & if [ -f /tmp/dd_disk ]; then for dd in $(cat /tmp/dd_disk); do if [ -e $dd ]; then driver-updates --disk $dd $dd + rm $dd fi done + rm /tmp/dd_disk fi -setsid sh -c 'exec bash <> /dev/tty2 >&0 2>&1' & udevadm trigger udevadm trigger --type=devices --action=add udevadm settle