Add user rdc to render or video group

Add user rdc to render or video group to access KFD for diagnostic.

Change-Id: Ie9b4ea65402319a2aae255063f8c79e56979a47f


[ROCm/rdc commit: d54c5715f0]
This commit is contained in:
Bill(Shuzhou) Liu
2022-03-23 10:19:36 -04:00
parent 843ba8f3b8
commit b50c3b485b
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -4,6 +4,11 @@
# it already exists
do_create_rdc_user() {
useradd -r -s /bin/nologin rdc
if [ $(getent group render) ]; then
usermod -a -G render rdc
else
usermod -a -G video rdc
fi
# Make sure this doesn't return non-zero if an id already exists
return 0
}
+6
View File
@@ -2,6 +2,12 @@
do_create_rdc_user() {
useradd -r -s /bin/nologin rdc
if [ $(getent group render) ]; then
usermod -a -G render rdc
else
usermod -a -G video rdc
fi
# Make sure this doesn't return non-zero if an id already exists
return 0
}