Skip to content

fix: restore optfix for 1password after blue-build/modules#570#43

Merged
rhussmann merged 1 commit into
mainfrom
fix/1password-optfix
Jun 23, 2026
Merged

fix: restore optfix for 1password after blue-build/modules#570#43
rhussmann merged 1 commit into
mainfrom
fix/1password-optfix

Conversation

@rhussmann

Copy link
Copy Markdown
Owner

Summary

  • blue-build/modules PR #570 (merged 2026-06-12) removed the "optfix" from the bling 1password.sh installer, on the assumption that the blue-build CLI's own pre_build.sh/post_build.sh would handle relocating /opt packages into the ostree-committed filesystem
  • This repo uses the script directly via buildah — the CLI never runs, so its optfix never applies
  • On ostree systems (bluefin), /opt at runtime is a symlink to /var/opt (a mutable volume not included in the ostree commit), so 1Password silently disappears on the running system despite builds succeeding without error

The fix restores the pre-PR-#570 behaviour inline in the Containerfile:

  1. Moves the installed files from /opt/1Password/usr/lib/1Password (immutable, included in the ostree commit)
  2. Re-links /usr/bin/1password to the new location
  3. Registers a tmpfiles.d entry so systemd creates /opt/1Password as a symlink to /usr/lib/1Password at boot

Test plan

  • Trigger a manual build via Actions → Build Custom Image → Run workflow
  • Pull the resulting image and confirm /usr/lib/1Password/ is populated
  • Confirm /opt/1Password resolves correctly on a booted system (via the tmpfiles.d symlink)
  • Confirm 1Password launches and browser integration works

🤖 Generated with Claude Code

blue-build/modules PR #570 (merged 2026-06-12) removed the optfix from
the bling 1password installer, assuming the blue-build CLI's pre/post
build scripts would handle relocating /opt packages to /usr/lib/opt and
registering tmpfiles.d symlinks. This repo uses the installer script
directly via buildah, not through the CLI, so that mechanism never runs.

On ostree systems, /opt at runtime is a symlink to /var/opt (a mutable
volume excluded from the ostree commit), so 1Password silently disappears
on the running system despite the image building successfully.

Restore the pre-PR-#570 behaviour inline: move the installed files to
/usr/lib/1Password (immutable, included in the ostree commit) and
register a tmpfiles.d entry so systemd creates /opt/1Password as a
symlink at boot.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rhussmann
rhussmann merged commit 86184b5 into main Jun 23, 2026
2 checks passed
@rhussmann
rhussmann deleted the fix/1password-optfix branch June 23, 2026 01:38
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.

1 participant