From 4c74581f0c4393b3e23947226af41dc2e3a9ae1e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 1 Dec 2020 16:57:26 -0500 Subject: [PATCH] Try to add installedargs to suse profiles --- .../suse15/initramfs/opt/confluent/bin/suseagent | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent b/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent index 4aa54aa5..a5460029 100755 --- a/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent +++ b/confluent_osdeploy/suse15/initramfs/opt/confluent/bin/suseagent @@ -116,6 +116,14 @@ profilename=${profilename#profile: } proto=$(grep ^protocol: /etc/confluent/confluent.deploycfg) proto=${proto#protocol: } +curl https://$mgr/confluent-public/os/$profilename/profile.yaml > /tmp/profile.yaml +append=$(grep ^installedargs: /tmp/profile.yaml | sed -e 's/^installedargs: //' -e 's/#.*//') +if [ -z "$append" ]; then + echo "" > /tmp/bootloader.xml +else + echo "$append" > /tmp/bootloader.xml +fi + echo "${proto}://${mgr}/confluent-public/os/${profilename}/product" > /tmp/pkgurl echo "AutoYaST: $proto://$mgr/confluent-public/os/$profilename/autoyast" >> /etc/linuxrc.d/01-confluent