Alan Kuo | c239b6f | 2020-12-23 09:51:14 +0800 | [diff] [blame] | 1 | SUMMARY = "Add default Users" |
| 2 | DESCRIPTION = "Add Users" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | EXCLUDE_FROM_WORLD = "1" |
| 7 | |
| 8 | DEPENDS = "bmcweb" |
| 9 | DEPENDS += "phosphor-ipmi-host" |
| 10 | DEPENDS += "phosphor-user-manager" |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 11 | RDEPENDS:${PN} = "bmcweb" |
| 12 | RDEPENDS:${PN} += "phosphor-ipmi-host" |
| 13 | RDEPENDS:${PN} += "phosphor-user-manager" |
Alan Kuo | c239b6f | 2020-12-23 09:51:14 +0800 | [diff] [blame] | 14 | |
| 15 | inherit useradd |
| 16 | USERADD_PACKAGES = "${PN}" |
| 17 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 18 | USERADD_PARAM:${PN} = "-m -N -u 1000 -g 100 -s /bin/nologin \ |
Alan Kuo | c239b6f | 2020-12-23 09:51:14 +0800 | [diff] [blame] | 19 | -G 'web,redfish,priv-admin' Megapede; " |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 20 | GROUPMEMS_PARAM:${PN} = "-g priv-admin -a root; " |
| 21 | GROUPMEMS_PARAM:${PN} += "-g ipmi -a root; " |
Alan Kuo | c239b6f | 2020-12-23 09:51:14 +0800 | [diff] [blame] | 22 | |
Willy Tu | 4dd03ca | 2021-08-06 09:37:35 -0700 | [diff] [blame] | 23 | ALLOW_EMPTY:${PN} = "1" |