Comment 2 for bug 1898957

Revision history for this message
JamesLin (jneo8) wrote :

Update: I test sysconfig on my local virtual-maas with this command

```
juju config sysconfig update-grub=true grub-config-flags='GRUB_TIMEOUT=10
GRUB_TIMEOUT_STYLE=menu
GRUB_SERIAL_COMMAND="serial --speed=115200"
GRUB_TERMINAL="console serial"
'
```

And deploy on ubuntu(focal)

The `/etc/default/grub.d/90-sysconfig.cfg` will be config as

```
# Juju generated file - do not edit manually

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

# Evaluate grub-config-flags first, in case it uses $GRUB_CMDLINE_LINUX_DEFAULT.
# However, if grub-config-flags is not specified, ignore that (current behavior.)
# config-flags
GRUB_TIMEOUT=10
GRUB_TIMEOUT_STYLE=menu
GRUB_SERIAL_COMMAND="serial --speed=115200"
GRUB_TERMINAL="console serial"
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT console=ttyS0,115200 console=tty0"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
GRUB_TERMINAL=serial
```

The `GRUB_TERMINAL` will be override by default `GRUB_TERMINAL=serial`(Not sure why two config not merge), which make `console` be disabled and grub can't view on `virt-viewer`

(I tried to comment `GRUB_TERMINAL=serial` manual, and grub showed on `virt-viewer`)

I am not sure which TERMINAL type Openstack, AWS, Google, or VMware need.

But maybe is because `GRUB_TERMINAL`?