imagebuild failed installing a package inside base image chroot because /run/lock wasn't available

Bug #1337877 reported by Ursula Junque
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
High
Ursula Junque

Bug Description

When installing click-dev, that pulled schroot as a dependency and installing that package failed as postinst script couldn't find /var/lock. Further investigation led to realizing /run/lock didn't exist inside the chroot.

We need to investigate what cases we're not covering when creating the bind mounts before chrooting into the image, so this won't happen again.

Related branches

Revision history for this message
Ursula Junque (ursinha) wrote :

plars suggested we try adding '/run/lock' to the bind mount list, I have a deployment and am testing his patch.

Ursula Junque (ursinha)
Changed in uci-engine:
importance: Undecided → High
status: New → Triaged
milestone: none → uce-1
Ursula Junque (ursinha)
Changed in uci-engine:
status: Triaged → In Progress
Revision history for this message
Ursula Junque (ursinha) wrote :

The bind mount didn't work. I had to add a /run/lock to the mountpoint and properly mount it as a tmpfs.

Ursula Junque (ursinha)
Changed in uci-engine:
status: In Progress → Fix Committed
assignee: nobody → Ursula Junque (ursinha)
Revision history for this message
Paul Larson (pwlars) wrote :

Closing this since it's handled for the /run/lock case, and opening https://bugs.launchpad.net/uci-engine/+bug/1338638 for the general case.

Changed in uci-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.