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

Post-install fails (on minimal Debian Buster) when gpio-group is missing #4

Open
gitdings opened this issue Aug 9, 2020 · 0 comments

Comments

@gitdings
Copy link

gitdings commented Aug 9, 2020

Using the current image from https://raspi.debian.net/, install of argon1_0.2.1_all.deb fails:

Setting /usr/bin/argonone-shutdown to suid argonone
Adding user argonone to gpio and i2c groups
usermod: group 'gpio' does not exist
dpkg: error processing package argon1 (--install):
installed argon1 package post-installation script subprocess returned error exit status 6

After adding gpio goup (i2c was there), post-install is happy.

P.S. Putting this in a Debian package is the right thing to do. Thank you!

gitgrift added a commit to gitgrift/argon1 that referenced this issue Sep 21, 2020
If the i2c kernel modules are not loaded or the user does not have the correct permissions the smbus.SMBus() call will fail. Wrap the call in try/except to catch this.

Fixes: spapadim#4

Signed-off-by: Patrick Talbert <[email protected]>
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 a pull request may close this issue.

1 participant