-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/incus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
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/#-*/-}" | ||
) | ||
} |
8 changes: 8 additions & 0 deletions
8
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/incus-admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
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/#-*/-}" | ||
) | ||
} |
8 changes: 8 additions & 0 deletions
8
sdk_container/src/third_party/coreos-overlay/coreos/config/env/acct-group/lxc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
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/#-*/-}" | ||
) | ||
} |