Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove debconf call in grub script #8675

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jiaqingz-intel
Copy link
Contributor

Calling debconf in grub script may fail when installing with dpkg as
debconf database might be occupied by dpkg, causing update-grub fail
with message below

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

This patchset fixes issue above by creating a symlink to scenario file
at fixed path /usr/share/acrn/scenario.xml and let grub-acrn script
read scenario here so that debconf is no longer called.

Calling debconfig to concatenating the path of scenario xml may fail
when executing update-grub during package installation as debconf
database might be locked by dpkg. Read scenario config from
/usr/share/acrn/scenario.xml (symlink created when installing
acrn-hypervisor) instead.

Tracked-On: projectacrn#8667
Signed-off-by: Jiaqing Zhao <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
grub script should check if any acrn hypervisor is installed on system
first before parsing scenario xml.

Tracked-On: projectacrn#8667
Signed-off-by: Jiaqing Zhao <[email protected]>
Reviewed-by: Junjie Mao <[email protected]>
@yuhuanX
Copy link
Contributor

yuhuanX commented Sep 11, 2024

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants