mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
config/acct-group: provide userdb group record
this is required when loading the sysext image to dynamically load / unload the groups provided by the image. Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
parent
df4b910323
commit
0355630109
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/incus
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/incus
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# This is used to convert regular user / group entries to
|
||||
# userdb entries (in JSON format) to later be consumed by userdbd
|
||||
# when loading the sysext image on the instance.
|
||||
# The user / groups will be created dynamically and if the sysext image is
|
||||
# removed the entries will be removed as well.
|
||||
cros_post_src_install_add_userdb_record(){
|
||||
insinto /usr/lib/userdb
|
||||
newins - ${ACCT_GROUP_NAME}.group < <(
|
||||
printf '{"groupName":"%q","gid":%q}\n' \
|
||||
"${ACCT_GROUP_NAME}" \
|
||||
"${_ACCT_GROUP_ID/#-*/-}"
|
||||
)
|
||||
}
|
||||
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/incus-admin
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/incus-admin
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# This is used to convert regular user / group entries to
|
||||
# userdb entries (in JSON format) to later be consumed by userdbd
|
||||
# when loading the sysext image on the instance.
|
||||
# The user / groups will be created dynamically and if the sysext image is
|
||||
# removed the entries will be removed as well.
|
||||
cros_post_src_install_add_userdb_record(){
|
||||
insinto /usr/lib/userdb
|
||||
newins - ${ACCT_GROUP_NAME}.group < <(
|
||||
printf '{"groupName":"%q","gid":%q}\n' \
|
||||
"${ACCT_GROUP_NAME}" \
|
||||
"${_ACCT_GROUP_ID/#-*/-}"
|
||||
)
|
||||
}
|
||||
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/lxc
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/lxc
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# This is used to convert regular user / group entries to
|
||||
# userdb entries (in JSON format) to later be consumed by userdbd
|
||||
# when loading the sysext image on the instance.
|
||||
# The user / groups will be created dynamically and if the sysext image is
|
||||
# removed the entries will be removed as well.
|
||||
cros_post_src_install_add_userdb_record(){
|
||||
insinto /usr/lib/userdb
|
||||
newins - ${ACCT_GROUP_NAME}.group < <(
|
||||
printf '{"groupName":"%q","gid":%q}\n' \
|
||||
"${ACCT_GROUP_NAME}" \
|
||||
"${_ACCT_GROUP_ID/#-*/-}"
|
||||
)
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user