From 1722ad941bbc624b69977e2f55b5525de120b0fd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 9 Apr 2020 16:13:33 -0400 Subject: [PATCH] Add a starting sample of initqueue dracut hook For rhel8, this initqueu hook is useful --- misc/confluent-initqueue.sh.rh8 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 misc/confluent-initqueue.sh.rh8 diff --git a/misc/confluent-initqueue.sh.rh8 b/misc/confluent-initqueue.sh.rh8 new file mode 100644 index 00000000..8dd4e517 --- /dev/null +++ b/misc/confluent-initqueue.sh.rh8 @@ -0,0 +1,19 @@ +#!/bin/sh +cd /sys/class/net +for currif in *; do + ip link set $currif up +done +cd - +while ! grep MANAGER /tmp/confluent.info >& /dev/null; do + /opt/confluent/bin/copernicus > /tmp/confluent.out +done +read ifidx < /tmp/net.ifaces +# Need to construct the following: +# echo ip=172.30.203.31::172.30.0.254:255.255.0.0:r4u31:enp65s0f0:none >> /etc/cmdline.d/01-confluent.conf +# echo inst.repo=http://172.30.0.254/confluent-public/os/centos-8.1-x86_64-compute/distribution >> /etc/cmdline.d/01-confluent.conf +