GRUB_TERMINAL=serial ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
apt-cache policy grub2-common
grub2-common:
Installed: 2.02-2ubuntu8
Candidate: 2.02-2ubuntu8
Version table:
*** 2.02-2ubuntu8 500
500 http://
100 /var/lib/
Setting /etc/default/grub
GRUB_TERMINAL=
GRUB_SERIAL_
is ignored by /usr/sbin/
apparently due to /etc/grub.
for x in ${GRUB_
if [ xserial = "x$x" ]; then
serial=1;
and therefore the subsequent generation of the serial command not being performed:
if [ "x$serial" = x1 ]; then
...
echo "${GRUB_
and thus resulting in:
$ grep -n terminal /boot/grub/grub.cfg
62:terminal_input console
63:terminal_output console
In order to have it work correctly 2 additional assignments are required:
GRUB_TERMINAL=
GRUB_TERMINAL_
GRUB_TERMINAL_
GRUB_SERIAL_
GRUB_TERMINAL isn't exported to the scripts in /etc/grub.d/ but is used by /usr/sbin/
Surely when it is set and the others aren't it should be copied to them? It seems ridiculous to require 3 variables be set when 1 will do for the default case of having both I/O redirected to a serial port.
As an aside:
Using a cloudimg derived rootfs (used by LXD and others) as the basis for a bootable image creates a file that isn't attributed to any package which forces 'console' even when 'serial' is set
/etc/default/
GRUB_TERMINAL=
This file has to be deleted.
Changed in grub2 (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
Status changed to 'Confirmed' because the bug affects multiple users.