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

Replace use of kpartx for ubuntu-core distrobuilder #190

Closed
stgraber opened this issue Jul 6, 2019 · 0 comments · Fixed by #191
Closed

Replace use of kpartx for ubuntu-core distrobuilder #190

stgraber opened this issue Jul 6, 2019 · 0 comments · Fixed by #191
Assignees

Comments

@stgraber
Copy link
Member

stgraber commented Jul 6, 2019

Because our production image building runs inside a container (privileged though), we can't use kpartx as it attempts to mess with device-mapper which is very very unpleasant to use inside containers.

We do however have working loop devices, so using losetup would be fine.

So we need to change distrobuilder to scan the partition table of the .img file, figure out the offset and size of the partition we want and then map that using losetup, then mount it.

monstermunchkin added a commit to monstermunchkin/distrobuilder that referenced this issue Jul 8, 2019
This resolves lxc#190

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
monstermunchkin added a commit to monstermunchkin/distrobuilder that referenced this issue Jul 8, 2019
This resolves lxc#190

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants