From 75c51515672fd9b3abc0e56dcefc179e0fefc873 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 18 Nov 2021 10:42:22 -0500 Subject: [PATCH] Add hook to hook the premount script --- .../ubuntu20.04-diskless/initramfs/conf/conf.d/confluent | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 confluent_osdeploy/ubuntu20.04-diskless/initramfs/conf/conf.d/confluent diff --git a/confluent_osdeploy/ubuntu20.04-diskless/initramfs/conf/conf.d/confluent b/confluent_osdeploy/ubuntu20.04-diskless/initramfs/conf/conf.d/confluent new file mode 100644 index 00000000..8d11e9f5 --- /dev/null +++ b/confluent_osdeploy/ubuntu20.04-diskless/initramfs/conf/conf.d/confluent @@ -0,0 +1,8 @@ +if ! grep console= /proc/cmdline > /dev/null; then + /opt/confluent/bin/autocons > /custom-installation/autocons.info + cons=$(cat /custom-installation/autocons.info) + if [ ! -z "$cons" ]; then + echo "Auto-detected serial console: $cons" > ${cons%,*} + fi +fi +echo /scripts/init-premount/confluent >> /scripts/init-premount/ORDER