Skip to content

install: Only switch to loopback after re-exec#278

Merged
jeckersb merged 2 commits intobootc-dev:mainfrom
cgwalters:loop-debug
Jan 24, 2024
Merged

install: Only switch to loopback after re-exec#278
jeckersb merged 2 commits intobootc-dev:mainfrom
cgwalters:loop-debug

Conversation

@cgwalters
Copy link
Copy Markdown
Collaborator

blockdev: Add some debugging around loopback

Signed-off-by: Colin Walters walters@verbum.org


install: Only switch to loopback after re-exec

I noticed we were leaking a loopback device, and the reason is
because the "re-exec self for selinux" dance.

We should really try to move that re-exec way earlier because
it's a big hazard for stuff like this right now.

This is a simple fix though that just moves the switch to
allocating the loopback device until after we've done the install
prep (including that re-exec).

Signed-off-by: Colin Walters walters@verbum.org


Signed-off-by: Colin Walters <walters@verbum.org>
I noticed we were leaking a loopback device, and the reason is
because the "re-exec self for selinux" dance.

We should really try to move that re-exec way earlier because
it's a big hazard for stuff like this right now.

This is a simple fix though that just moves the switch to
allocating the loopback device until after we've done the install
prep (including that re-exec).

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters
Copy link
Copy Markdown
Collaborator Author

(ok now correctly resolved the merge conflict with #277 )

Copy link
Copy Markdown
Collaborator

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeckersb jeckersb merged commit f9c37ae into bootc-dev:main Jan 24, 2024
@cgwalters cgwalters mentioned this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants