Skip to content

Commit

Permalink
Add groups required for gdm
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Sep 25, 2024
1 parent 84e8af9 commit 48aaea5
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cookbooks/boxcutter_site_settings/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,27 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if node['kernel']['machine'] == 'aarch64'
%w{
adm
cdrom
sudo
dip
plugdev
lpadmin
sambashare
audio
video
render
gdm
weston-launch
i2c
gpio
}.each do |group|
FB::Users.initialize_group(node, group)
end
end

include_recipe '::remap_users'

puts "MISCHA: node['boxcutter_config']['tier] = #{node['boxcutter_config']['tier']}"
Expand Down
55 changes: 55 additions & 0 deletions cookbooks/boxcutter_users/libraries/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ class Users
'uid' => 0,
'system' => true,
},
'pulse' => {
'uid' => 116,
'comment' => 'PulseAudio daemon',
},
'nexus' => {
'uid' => 990,
},
Expand Down Expand Up @@ -47,9 +51,60 @@ class Users
'gid' => 0,
'system' => true,
},
'adm' => {
'gid' => 4,
},
'cdrom' => {
'gid' => 24,
},
'sudo' => {
'gid' => 27,
},
'audio' => {
'gid' => 29,
},
'dip' => {
'gid' => 30,
},
'video' => {
'gid' => 44,
},
'plugdev' => {
'gid' => 46,
},
'users' => {
'gid' => 100,
},
'render' => {
'gid' => 104,
},
'i2c' => {
'gid' => 116,
},
'lpadmin' => {
'gid' => 120,
},
'pulse' => {
'gid' => 122,
},
'sambashare' => {
'gid' => 123,
},
'pulse' => {
'gid' => 125,
},
'pulse-access' => {
'gid' => 126,
},
'gdm' => {
'gid' => 135,
},
'weston-launch' => {
'gid' => 888,
},
'gpio' => {
'gid' => 889,
},
'nexus' => {
'gid' => 990,
},
Expand Down

0 comments on commit 48aaea5

Please sign in to comment.