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

fedora rpm has wrong postinsall script and shouldn't have to use in this way #3881

Open
lfarkas opened this issue Nov 20, 2022 · 0 comments
Open

Comments

@lfarkas
Copy link

lfarkas commented Nov 20, 2022

on fedora 37 the postinstall script try to create these links:

# Link to the binary
ln -sf '/opt/balena-etcher-electron/balena-etcher-electron' '/usr/bin/balena-etcher-electron'

# SUID chrome-sandbox for Electron 5+
chmod 4755 '/opt/balena-etcher-electron/chrome-sandbox' || true

while it's installed into /opt/balenaEtcher/.
and anyway both can be solved much clean way:

  1. create symlink during build not during install. in the way the file /usr/bin/balena-etcher-electron will be part of the rpm package and the uggly postinstall hack also do not required.
  2. the chmod can also be added to the spec file with the %attr 4755 ...prefix before the filename
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

No branches or pull requests

1 participant