Skip to content

Conversation

@ahmedadan
Copy link
Collaborator

@ahmedadan ahmedadan commented Nov 15, 2025

Summary

Migrates Homebrew from the ublue-brew RPM package to a pre-built tarball approach compatible with bootc's immutable
architecture, with runtime configuration moved to the common repo.

Changes

  • Replaced ublue-brew RPM package with tarball-based installation:
    • Downloads pre-built tarball from ublue-os/packages releases to /usr/share/homebrew.tar.zst
    • Automatically fetches latest homebrew release
    • Verifies SHA256 checksum before inclusion in image
  • brew-setup.service to extract tarball on first boot:
    • Extracts to /var/home/linuxbrew/.linuxbrew at runtime
    • Uses condition checks to run only once (/etc/.linuxbrew marker)
    • Sets proper ownership (UID 1000) after extraction
  • Migrated Homebrew configuration to common repo:
    • Shell integration (bash, fish)
    • Systemd services and timers (brew-setup, brew-update, brew-upgrade)
    • Resource limits and tmpfiles.d configuration
  • Removed ublue-brew package from ISO configurations
  • Removed Brewfiles directory (moved to common repo)
  • Removed just files (moved to common repo)
  • Updated ISO configurations to disable brew services consistently

Dependencies

Requires projectbluefin/common#19 to be merged first.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. brew Issues related to brew.sh integration labels Nov 15, 2025
@dosubot
Copy link

dosubot bot commented Nov 15, 2025

Related Documentation

2 document(s) may need updating based on files changed in this PR:

bluefin

How did I do? Any feedback?  Join Discord

@ahmedadan ahmedadan force-pushed the refactor/homebrew-script-migration branch from aeb27d1 to 0fd8be2 Compare November 15, 2025 23:33
@ahmedadan ahmedadan changed the title refactor: migrate Homebrew from RPM to systemd services refactor: migrate Homebrew from RPM to Containerfile Nov 15, 2025
@ahmedadan ahmedadan force-pushed the refactor/homebrew-script-migration branch from 0fd8be2 to 892c2f3 Compare November 15, 2025 23:46
@ahmedadan ahmedadan force-pushed the refactor/homebrew-script-migration branch 2 times, most recently from 2c691b2 to f2dc6e1 Compare November 24, 2025 01:17
@ahmedadan ahmedadan force-pushed the refactor/homebrew-script-migration branch from e4772ee to a4d31b0 Compare November 26, 2025 04:01
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

brew Issues related to brew.sh integration size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants