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

Fix logic around grml_sources handling no longer being bind-mounted #229

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

mika
Copy link
Member

@mika mika commented Dec 19, 2024

In commit 87524f9 we adjusted the grml_sources handling, as bind mounts are not allowed in (unprivileged) docker.

Now when running grml-live with SOURCES class enabled multiple times in a row (e.g. via grml-live's -b or -u options), one ends up with the $OUTPUT/grml_sources and $OUTPUT/grml_chroot/grml-live/grml_sources directories. grml-live then complains:

  mv: cannot overwrite '$OUTPUT/grml_sources': Directory not empty
  rmdir: failed to remove '$OUTPUT/grml_chroot/grml-live': Directory not empty

As of commit 8b0a6fa we generate a source package tarball when using the SOURCES class, so one might want to remove the "${OUTPUT}/grml_sources" directory anyway (similar to what we're doing in commit 6486c84 in our CI runs). But let's also fix the underlying logic and move grml_sources around as expected.

In commit 87524f9 we adjusted the
grml_sources handling, as bind mounts are not allowed in (unprivileged)
docker.

Now when running grml-live with SOURCES class enabled multiple times in
a row (e.g. via grml-live's `-b` or `-u` options), one ends up with the
$OUTPUT/grml_sources *and* $OUTPUT/grml_chroot/grml-live/grml_sources
directories. grml-live then complains:

  mv: cannot overwrite '$OUTPUT/grml_sources': Directory not empty
  rmdir: failed to remove '$OUTPUT/grml_chroot/grml-live': Directory not empty

As of commit 8b0a6fa we generate a
source package tarball when using the SOURCES class, so one might want
to remove the "${OUTPUT}/grml_sources" directory anyway (similar to what
we're doing in commit 6486c84 in our CI
runs). But let's also fix the underlying logic and move grml_sources
around as expected.
@mika mika requested review from zeha and jkirk December 19, 2024 01:20
@mika mika merged commit d85116e into master Dec 19, 2024
12 checks passed
@mika mika deleted the mika/sources-cleanup branch December 19, 2024 01:35
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