Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7fa2357

Browse files
committedJul 21, 2021
ubuntu-touch/hooks: add phablet user's group membership statically
Well, even though the phablet user is in extrausers db, the group it needs to be in is still in /etc/group. Currently, we don't have a better way. The alternative which is utilizing glibc's [SUCCESS=merge] directive would require us patching libnss-extrausers which has been orphaned for quite some time now. Ubuntu Core based on snap also has the same problem. https://forum.snapcraft.io/t/adding-users-to-system-groups-on-ubuntu-core/20109 canonical/core20#72
1 parent e459322 commit 7fa2357

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed
 

‎live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early

+42-42
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ root:x:0:
125125
daemon:x:1:
126126
bin:x:2:
127127
sys:x:3:
128-
adm:x:4:syslog
129-
tty:x:5:
128+
adm:x:4:syslog,phablet
129+
tty:x:5:phablet
130130
disk:x:6:
131131
lp:x:7:
132132
mail:x:8:
@@ -135,15 +135,15 @@ uucp:x:10:
135135
man:x:12:
136136
proxy:x:13:
137137
kmem:x:15:
138-
dialout:x:20:
138+
dialout:x:20:phablet
139139
fax:x:21:
140140
voice:x:22:
141-
cdrom:x:24:
141+
cdrom:x:24:phablet
142142
floppy:x:25:
143143
tape:x:26:
144-
sudo:x:27:
145-
audio:x:1005:
146-
dip:x:30:
144+
sudo:x:27:phablet
145+
audio:x:1005:phablet
146+
dip:x:30:phablet
147147
www-data:x:33:
148148
backup:x:34:
149149
operator:x:37:
@@ -153,9 +153,9 @@ src:x:40:
153153
gnats:x:41:
154154
shadow:x:42:
155155
utmp:x:43:
156-
video:x:44:
156+
video:x:44:phablet
157157
sasl:x:45:
158-
plugdev:x:46:
158+
plugdev:x:46:phablet
159159
staff:x:50:
160160
games:x:60:
161161
users:x:100:
@@ -172,22 +172,22 @@ rtkit:x:109:
172172
whoopsie:x:110:
173173
lightdm:x:111:
174174
nopasswdlogin:x:112:
175-
bluetooth:x:1002:
175+
bluetooth:x:1002:phablet
176176
lxc-dnsmasq:x:114:
177177
pulse:x:115:
178178
pulse-access:x:116:
179179
system:x:1000:
180-
radio:x:1001:
181-
gps:x:1021:
182-
android_net:x:3003:
183-
android_net2:x:3004:
184-
android_net3:x:3002:
185-
android_graphics:x:1003:
186-
android_input:x:1004:
187-
sdcard_rw:x:1015:
188-
android_media:x:1013:
189-
android_nvram:x:9997:
190-
android_cache:x:2001:
180+
radio:x:1001:phablet
181+
gps:x:1021:phablet
182+
android_net:x:3003:phablet
183+
android_net2:x:3004:phablet
184+
android_net3:x:3002:phablet
185+
android_graphics:x:1003:phablet
186+
android_input:x:1004:phablet
187+
sdcard_rw:x:1015:phablet
188+
android_media:x:1013:phablet
189+
android_nvram:x:9997:phablet
190+
android_cache:x:2001:phablet
191191
systemd-timesync:x:113:
192192
systemd-network:x:117:
193193
systemd-resolve:x:118:
@@ -212,8 +212,8 @@ root:*::
212212
daemon:*::
213213
bin:*::
214214
sys:*::
215-
adm:*::syslog
216-
tty:*::
215+
adm:*::syslog,phablet
216+
tty:*::phablet
217217
disk:*::
218218
lp:*::
219219
mail:*::
@@ -222,15 +222,15 @@ uucp:*::
222222
man:*::
223223
proxy:*::
224224
kmem:*::
225-
dialout:*::
225+
dialout:*::phablet
226226
fax:*::
227227
voice:*::
228-
cdrom:*::
228+
cdrom:*::phablet
229229
floppy:*::
230230
tape:*::
231-
sudo:*::
232-
audio:*::pulse
233-
dip:*::
231+
sudo:*::phablet
232+
audio:*::pulse,phablet
233+
dip:*::phablet
234234
www-data:*::
235235
backup:*::
236236
operator:*::
@@ -240,9 +240,9 @@ src:*::
240240
gnats:*::
241241
shadow:*::
242242
utmp:*::
243-
video:*::
243+
video:*::phablet
244244
sasl:*::
245-
plugdev:*::
245+
plugdev:*::phablet
246246
staff:*::
247247
games:*::
248248
users:*::
@@ -259,22 +259,22 @@ rtkit:!::
259259
whoopsie:!::
260260
lightdm:!::
261261
nopasswdlogin:!::
262-
bluetooth:!::
262+
bluetooth:!::phablet
263263
lxc-dnsmasq:!::
264264
pulse:!::
265265
pulse-access:!::
266266
system:!::
267-
radio:!::
268-
gps:!::
269-
android_net:!::
270-
android_net2:!::
271-
android_net3:!::
272-
android_graphics:!::
273-
android_input:!::
274-
sdcard_rw:!::
275-
android_media:!::
276-
android_nvram:!::
277-
android_cache:!::
267+
radio:!::phablet
268+
gps:!::phablet
269+
android_net:!::phablet
270+
android_net2:!::phablet
271+
android_net3:!::phablet
272+
android_graphics:!::phablet
273+
android_input:!::phablet
274+
sdcard_rw:!::phablet
275+
android_media:!::phablet
276+
android_nvram:!::phablet
277+
android_cache:!::phablet
278278
systemd-timesync:!::
279279
systemd-network:!::
280280
systemd-resolve:!::

0 commit comments

Comments
 (0)
This repository has been archived.