Skip to content

Grub Issue in ansible playbook debian 13 #14251

@Parnoud

Description

@Parnoud

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 :

:~# 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 ;

:~# 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 :

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions