You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is several lines of GRUB_CMDLINE_LINUX_DEFAULT and the second to last line has no ending ", which results in a error when the grub file is generated
RUNNING HANDLER [RHEL8-CIS : generate new grub config] ************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["grub2-mkconfig", "-o", "/boot/grub2/grub.cfg"], "delta": "0:00:00.369642", "end": "2021-03-30 12:33:11.910391", "msg": "non-zero return code", "rc": 2, "start": "2021-03-30 12:33:11.540749", "stderr": "/etc/default/grub: line 10: unexpected EOF while looking for matching `\"'", "stderr_lines": ["/etc/default/grub: line 10: unexpected EOF while looking for matching `\"'"], "stdout": "", "stdout_lines": []}
...ignoring
The text was updated successfully, but these errors were encountered:
Iperrin-obs,
Can you give a bit more detail on the base system and what branch you are using? Using a generic RHEL8 and CENTOS8 system I'm not seeing the same results. Below is what I am ending up with in the /etc/default/grub file. The line GRUB_CMDLINE_LINUX is the one the role has modified.
I'm using the devel branch.
First test I have done was with a CentOS 8 image built with disk-image-builder.
I tested the playbook with an official CentOS 8 qcow2 image and didn't reproduce the error, so it may be related to a missing library. I will check.
When the items 4.1.1.3 and 4.1.1.4 are run one after the other, I got a
/etc/default/grub
file like this on a fresh deployment of CentOS 8There is several lines of
GRUB_CMDLINE_LINUX_DEFAULT
and the second to last line has no ending"
, which results in a error when the grub file is generatedThe text was updated successfully, but these errors were encountered: