41 Replies
Yeah that’s what I was getting. I’m not sure if it was the same number but between 950 and 960 anyway
And that’s because they were created by the RPM before a real user (and the real user’s own group) were created
But I don’t think it actually uses that file
yues, but this disparity of /usr/etc/group and /etc/group is one of the more annoying things i've seen in this world 🙂
FYI https://github.com/bsherman/ublue-custom/blob/non-flatpack-browser/install-1password.sh
I like using the repo vs direct file paths
Fair enough, though I have no idea how to fix that. I wonder if that’s where rpm-ostree generates the sysusers.d files from
Like, by diffing that file I mean
yeah, i'm not sure
why did you need to rpm-ostree unlock to modify /etc/groups ?
No that’s was to modify the sysusers.d file without going through the whole image build → upgrade process
You don’t need to unlock to modify /etc/groups
ok, i wasn't 100% following
sudo rpm-ostree unlock and then editing the file and running groupdel onepassword && systemd-sysusers to recreate the group
Yeah
I’m usually not up this early anyway 😛
lol
But yeah, I wanted to test programmatically creating the group (because for whatever reason it doesn’t actually create it with the GID based on a file path like it says it’s supposed to…)
i'm attempting to clean my system... so re-rebasing to this image will work as intended...
1) rebasing to other image
2) groupdel of onepassword/onepassword-cli
3) ???
4) rebase back to this image
i think that should do it
I think so, at least because it’ll touch the RPM db
I don’t know why it all has to be so complex. I just want to serve 5 terabytes
😄
I’ve been trying to learn kubernetes recently and I’ve come to really appreciate that video
oh, i don' tknow the video
Oh it’s great, hold on
Benjamin Staffin
YouTube
I just want to serve 5 terabytes.
This video dates back to about 2010, and is the origin of the phrase "I've forgotten how to count that low" that was recently referenced in a blog post and on hacker news. (https://acesounderglass.com/2021/10/20/i-dont-know-how-to-count-that-low/)
Even more related discussion:
https://news.ycombinator.com/item?id=29082014 (2021-11-02)
https://r...
lol, yes, i've seen it
i love this "only if you think your users are scum. do you hate your users?"
🤣
that sounds like a transcript of some internal chat... which is horrible
It’s actually originally an internal meme at google, from back when Borg (their internal predecessor to kubernetes) was new
yep
hmmm... didn't seem to work
Hm, do you have onepassword/onepassword-cli groups in your /etc/groups?
Okay, that’s better!
I made two different systemd-sysusers files
One for onepassword, one for onepassword-cli
So I’m guessing the latter just has something wrong with it
yeah, i'm not sure why the /etc/group only picked up onepassword, but yeah
If you manually run
sudo groupdel onepassword-cli && sudo systemd-sysusers
does it recreate it properly?ah hah!
Ah, cool! So I just need to remove that in my 1password.sh file too
that's because I'm using the rpm for cli not the zip download
Oh that’s even better, at least for me, because it means my thing isn’t wrong 😄
yep!
this is going to be great!
https://github.com/bsherman/ublue-custom/blob/non-flatpack-browser/install-1password.sh
i could probably swap the chown for chgrp
IT WORKS!
btw, 1password actually gives free teams/org accounts for open source projects https://github.com/1Password/1password-teams-open-source
GitHub
GitHub - 1Password/1password-teams-open-source: Get a free 1Passwor...
Get a free 1Password Teams membership for your open source project - GitHub - 1Password/1password-teams-open-source: Get a free 1Password Teams membership for your open source project
no doubt ublue qualifies, the only real requirement thereof is that whoever applies has to be a "core contributor for an active open source project that is at least 30 days old"
also, one bug that i've had going on is that 1password suddenly/silently quits whenever doing rpm-ostree stuff. i'm not sure why, but probably something's getting touched and not liking it. but it seems completely reliable other than that
yep! we just set this up recently!
Awesome!
@bsherman i meant to ask you, is there any particular reason you changed the GID values I set? i just want to know if they conflict with something i should be aware of so i can finish my PR for bling
i think there were 2 reasons:
1) it seemed better to me personally for 2 closely related groups like "onepassword" and "onepassword-cli" to be adjacent numbers rather than split by a hundred
2) 1500 is higher than 1000 and obviously not a default, but seems a more likely "random" pick for a non-default GID than something even higher and goofier like what i chose.
totally my personal choice
fair enough, that all makes sense. i left it at 1500 and 1600 but put a way to set it via env vars
Thanks for the inspiration on this: https://github.com/bsherman/ublue-custom/pull/15/commits/0e0b45ed2c73c0bbaadf4cfae84a8f74743a806d