This article describes the following failure that is seen when upgrading from JSA 7.4.3 (unreleased to public) and JSA 7.5.0 to JSA 7.5.0 UP1 code. The error may also be seen when upgrading from other earlier versions of code, but generally the following error is seen:
[FAILURE] File /etc/default/grub has an unexpected value for the field 'GRUB_SERIAL_COMMAND'. This field is expected to have the following keys: '--unit=', '--speed=', '--word=', '--parity=', '--stop=' [REMEDIATION]
The steps to resolve the issue is also detailed here.
The issue is caused by duplicated GRUB_SERIAL_COMMAND entries in the /etc/default/grub file. There are two scenarios that give the same error but have slightly different resolutions.
Run the following to see what is in your file. You will see output that is similar:
# grep -r GRUB_SERIAL /etc/default/grub GRUB_SERIAL_COMMAND="serial" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1" System setup failed. Please logout/login on the console terminal to reconfigure system.
GRUB_SERIAL_COMMAND="serial" GRUB_SERIAL_COMMAND="serial --unit= --speed= --word= --parity= --stop=" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1"
The 7.5.0 ->7.5.0 UP1 patch contains an extra entry but does have values associated with it:
GRUB_SERIAL_COMMAND="serial" GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1"
To resolve this, do the following:
vi /etc/default/grub
Remove the appropriate duplicated entry:
In case 1 outlined above, remove the line showing: GRUB_SERIAL_COMMAND="serial --unit= --speed= --word= -- parity= --stop=" (leaving two GRUB_SERIAL_COMMAND entries in the file).
In case 2 outlined above, remove the line showing: GRUB_SERIAL_COMMAND="serial" (leaving one GRUB_SERIAL_COMMAND entry in the file).
Save the changes (:wq).
v1