-
Notifications
You must be signed in to change notification settings - Fork 113
Drop coreos-base/misc-files #4230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8f7a784
0a26873
2ac522c
d4c2219
8bf4aa1
9454f29
8860af7
38bd073
a42c0d1
10d96bc
66b33ed
83a96a3
59ab03d
0d98cd1
6cbc950
46cbf1c
2a34e3a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Copyright 2026 The Flatcar Maintainers. | ||
| # Distributed under the terms of the GNU General Public License v2 | ||
|
|
||
| EAPI=9 | ||
|
|
||
| inherit acct-group | ||
|
|
||
| ACCT_GROUP_ID=500 | ||
| ACCT_GROUP_ENFORCE_ID=yes | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Copyright 2026 Flatcar Maintainers | ||
| # Distributed under the terms of the GNU General Public License v2 | ||
|
|
||
| # Can't be 9 - tmpfiles eclass does not support it yet. | ||
| EAPI=8 | ||
|
|
||
| TMPFILES_OPTIONAL=yes | ||
| inherit acct-user tmpfiles | ||
|
|
||
|
chewi marked this conversation as resolved.
|
||
| ACCT_USER_ID=500 | ||
| ACCT_USER_ENFORCE_ID=yes | ||
| ACCT_USER_COMMENT="Flatcar Admin" | ||
| ACCT_USER_HOME="/home/core" | ||
| ACCT_USER_SHELL="/bin/bash" | ||
| ACCT_USER_GROUPS=( core docker wheel systemd-journal portage ) | ||
|
|
||
| acct-user_add_deps | ||
|
|
||
| declare -A CORE_BASH_SYMLINKS | ||
| CORE_BASH_SYMLINKS=( | ||
| ['.bash_logout']='/usr/share/flatcar/etc/skel/.bash_logout' | ||
| ['.bash_profile']='/usr/share/flatcar/etc/skel/.bash_profile' | ||
| ['.bashrc']='/usr/share/flatcar/etc/skel/.bashrc' | ||
| ) | ||
|
|
||
| src_compile() { | ||
| # Generate the tmpfiles config file for bash symlinks in | ||
| # core's home directory. | ||
| ( | ||
| for name in "${!CORE_BASH_SYMLINKS[@]}"; do | ||
| target=${CORE_BASH_SYMLINKS["${name}"]} | ||
| target=$(realpath --relative-to="${ACCT_USER_HOME}" --canonicalize-missing --no-symlinks "${target}" || die) | ||
| echo "L ${ACCT_USER_HOME}/${name} - core core - ${target}" || die | ||
| done | ||
| ) | LC_ALL=C sort >"${T}/home-core-bash-symlinks.conf" || die | ||
| } | ||
|
|
||
| src_install() { | ||
| acct-user_src_install | ||
| dotmpfiles "${T}/home-core-bash-symlinks.conf" | ||
| } | ||
|
|
||
| pkg_postinst() { | ||
| acct-user_pkg_postinst | ||
| local t n i name | ||
| read -r t n i <"${EROOT}/usr/lib/sysusers.d/acct-group-core.conf" || die | ||
| for name in "${!CORE_BASH_SYMLINKS[@]}"; do | ||
| target=${CORE_BASH_SYMLINKS["${name}"]} | ||
| link="${ACCT_USER_HOME}/${name}" | ||
| ln -sfT "${target}" "${EROOT}${link}" || die | ||
| chown --no-dereference ${ACCT_USER_ID}:${i} "${EROOT}${link}" || die | ||
| done | ||
| # we are putting things into the home directory, drop the | ||
| # keepdir artifact | ||
| rm -f "${EROOT}${ACCT_USER_HOME}/.keep_acct-user_core-"* || die | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
| <pkgmetadata> | ||
| </pkgmetadata> |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.