Skip to content

How to dynamically disable/enable SystemD Messages while running Combustion scripts (e.g. for custom dialogs) ? #813

@jomeier

Description

@jomeier

Hi,

I created custom dialogs that ask users for application specific settings, that must be set during combustion phase on first boot. I created a custom script for that and named it

custom/scripts/14u-custom-dialog.sh

with recent SLE Micro 6 versions (> 6.0 selfinstall !) Systemd status messages render my dialogs useless (Image 1). I tried to set this kernel argument with EIB:

systemd.show_status=0

this parameter works a few seconds during initial boot but short before the combustion phase systemd status messages come back:

Image

The systemd status message is continously written over the dialog :(

Together with a SUSE consultant I was able to create a custom SLE Micro 6 ISO image containing the "systemd.show_status=0" kernel parameter. This version works as expected (Image 2), but requires a custom build of SLE Micro :(

Image

This screen looks as expected!

I'm not sure if Edge Image Builder misses to set kernel parameters on all necessary locations in the base ISO image or if SLE Micro 6 versions from 6.1 on have this problem. SLE Micro 6.0 did not show this behaviour.

Expected Behaviour:
SLE Micro 6 should take kernel parameters configured with EIB (or simply manually entered in GRUB!) during the whole installation phase and first boot.

Currently it seems as if some kernel parameters are hardcoded in new SLE Micro ISO Images.

Having custom dialogs during combustion phase is a GREAT feature and it should be possible to use them out of the box!

Content of my custom script, if somebody is interested, how to get it running with the "dialog" tool in the combustion phase:

#!/bin/sh
# These parameters are necessary to render the dialog correct.
export TERM=linux;
export LANG=en_US.UTF-8


ROLE=master1
SETTING1=hiho
SETTING2=hohi

exec 3>&1;

network_test() {
  response=$(
  dialog --title "Node specific settings" --form "" 0 0 0 \
    "Role:" 1 1 "$ROLE" 1 15 20 0 \
    "Setting 1:" 2 1 "$SETTING1" 2 15 20 0 \
    "Setting 2:" 3 1 "$SETTING2" 3 15 20 0 \
  2>&1 1>&3 \
  > /dev/tty1)
}

network_test

exec 3>&-;

Any help would be appreciated.

Thanks,
Josef

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions