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

CI: mkosi-mainline: Workaround 'dpkg: error: dpkg frontend lock' #284

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

vt-alt
Copy link
Contributor

@vt-alt vt-alt commented Aug 3, 2023

Mkosi's own dracut hook, which is triggered from dpkg -i, calls dpkg-reconfigure causing dpkg frontend lock conflict. But initrd.img is generated correctly. Workaround by ignoring dpkg-reconfigure errors in the hook.

dpkg: error: dpkg frontend lock was locked by another process with pid 5
Note: removing the lock file is always wrong, can damage the locked area
and the entire system. See https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock.
run-parts: /etc/kernel/postinst.d/zz-systemd-boot exited with return code 2

Link: #283

Description

I did not investigate thoroughly all internal workings of dpkg -i/dpkg-reconfigure and what is changed since last week in Ubuntu (old action logs are not enough to clarify this.)

How Has This Been Tested?

Locally.

Mkosi's own dracut hook, which is triggered from `dpkg -i`, calls
`dpkg-reconfigure` causing dpkg frontend lock conflict. But `initrd.img`
is generated correctly. Workaround by ignoring `dpkg-reconfigure` errors
in the hook.

  dpkg: error: dpkg frontend lock was locked by another process with pid 5
  Note: removing the lock file is always wrong, can damage the locked area
  and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock>.
  run-parts: /etc/kernel/postinst.d/zz-systemd-boot exited with return code 2

Link: lkrg-org#283
Signed-off-by: Vitaly Chikunov <[email protected]>
@solardiz
Copy link
Contributor

solardiz commented Aug 3, 2023

Thank you, @vt-alt! Looks like CI is happy here. I'll merge.

@solardiz solardiz merged commit 47191f9 into lkrg-org:main Aug 3, 2023
20 checks passed
@vt-alt vt-alt deleted the dpkg-reconfigure branch August 3, 2023 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants