File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is used to convert regular user / group entries to
2
+ # userdb entries (in JSON format) to later be consumed by userdbd
3
+ # when loading the sysext image on the instance.
4
+ # The user / groups will be created dynamically and if the sysext image is
5
+ # removed the entries will be removed as well.
6
+ cros_post_src_install_add_userdb_record(){
7
+ insinto /usr/lib/userdb
8
+ newins - ${ACCT_GROUP_NAME}.group < <(
9
+ printf '{"groupName":"%q","gid":%q}\n' \
10
+ "${ACCT_GROUP_NAME}" \
11
+ "${_ACCT_GROUP_ID/#-*/-}"
12
+ )
13
+ }
Original file line number Diff line number Diff line change
1
+ # This is used to convert regular user / group entries to
2
+ # userdb entries (in JSON format) to later be consumed by userdbd
3
+ # when loading the sysext image on the instance.
4
+ # The user / groups will be created dynamically and if the sysext image is
5
+ # removed the entries will be removed as well.
6
+ cros_post_src_install_add_userdb_record(){
7
+ insinto /usr/lib/userdb
8
+ newins - ${ACCT_GROUP_NAME}.group < <(
9
+ printf '{"groupName":"%q","gid":%q}\n' \
10
+ "${ACCT_GROUP_NAME}" \
11
+ "${_ACCT_GROUP_ID/#-*/-}"
12
+ )
13
+ }
Original file line number Diff line number Diff line change
1
+ # This is used to convert regular user / group entries to
2
+ # userdb entries (in JSON format) to later be consumed by userdbd
3
+ # when loading the sysext image on the instance.
4
+ # The user / groups will be created dynamically and if the sysext image is
5
+ # removed the entries will be removed as well.
6
+ cros_post_src_install_add_userdb_record(){
7
+ insinto /usr/lib/userdb
8
+ newins - ${ACCT_GROUP_NAME}.group < <(
9
+ printf '{"groupName":"%q","gid":%q}\n' \
10
+ "${ACCT_GROUP_NAME}" \
11
+ "${_ACCT_GROUP_ID/#-*/-}"
12
+ )
13
+ }
You can’t perform that action at this time.
0 commit comments