-
Notifications
You must be signed in to change notification settings - Fork 763
Open
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:
- Download tar / Zip version 0.1.79
- Use ansible playbook : debian13-playbook-anssi_bp28_intermediary.yml
- Wait for the failed
Actual Results:
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-mkconfigMetadata
Metadata
Assignees
Labels
No labels