ComplianceAsCode / ComplianceAsCode/content

Grub Issue in ansible playbook debian 13

Open
#14,251 1 comment 0 reactions 0 assignees View on GitHub
Debian triaged Ubuntu
Dominant language
Shell
Stars
2.8k
Forks
828
Avg merge
3d 8m
Merged PRs (30d)
80

Description

#### Description of problem:
Debian 13.2 update grub not working because in playbook because commande ``grub-mkconfig`` isnt found.

#### SCAP Security Guide Version:
0.1.79

#### Operating System Version:
Debian 13.2

#### Steps to Reproduce:

1. Download tar / Zip version 0.1.79
2. Use ansible playbook : debian13-playbook-anssi_bp28_intermediary.yml
3. Wait for the failed

#### Actual Results:

Image

#### Expected Results:

Ok

#### Additional Information/Debugging Steps:

After looking, the commande update-grub dit not specified the complete path or load the env for the command :

```bash
:~# cat /usr/sbin/update-grub
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
```

If we try do init manualy he command all is ok, but ansible arent loadibg same env.
If we modify the update-grub command with ;

```bash
:~# cat /usr/sbin/update-grub
#!/bin/sh
set -e
exec :~# cat /usr/sbin/update-grub
#!/bin/sh
set -e
exec /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg "$@" -o /boot/grub/grub.cfg "$@"
```

With ``/usr/sbin/grub-mkconfig`` found from :

```bash
~# find / -name grub-mkconfig 2>/dev/null
/usr/sbin/grub-mkconfig
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.