Skip to content

Cleanup unnecessary paths in OpenBSD rootfs - #16991

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
am11:patch-18
Jun 9, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
am11:patch-18

Conversation

@am11

@am11 am11 commented Jun 9, 2026

Copy link
Copy Markdown
Member
$ du -sh /crossrootfs/
1.4G	/crossrootfs/

$ rm -rf /crossrootfs/x64/usr/share /crossrootfs/x64/usr/bin

$ du -sh /crossrootfs/
731M	/crossrootfs/

and after that, I deleted artifacts and crossbuilt from scratch, no issues.

@am11

am11 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

cc @akoeplinger, @janvorli, this will reduce the docker image size.

@akoeplinger
akoeplinger merged commit 701cb15 into dotnet:main Jun 9, 2026
10 checks passed
@akoeplinger

Copy link
Copy Markdown
Member

we can probably do this everywhere right?

@am11
am11 deleted the patch-18 branch June 9, 2026 07:27
@am11

am11 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

we can probably do this everywhere right?

On all those platforms where we are not using the compiler driver from rootfs, yes.

On platforms like illumos, we invoke the gcc cross compiler from rootfs (similar to Android NDK). Haiku was also on that plan, we recently switched it to "host compiler driver" model. illumos is pending on illumos/sysroot#3 for a while now. 😅

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