Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
8f7a784
overlay: Move modifications for sys-process/audit from coreos-base/mi…
krnowak Jul 30, 2026
0a26873
overlay: Move modifications for net-misc/ntp from coreos-base/misc-files
krnowak Jul 30, 2026
2ac522c
overlay: Move modifications for sys-apps/policycoreutils from coreos-…
krnowak Jul 30, 2026
d4c2219
overlay: Move modifications for net-misc/openssh from coreos-base/mis…
krnowak Aug 11, 2026
8bf4aa1
overlay: Move some selinux-related modifications from coreos-base/mis…
krnowak Aug 11, 2026
9454f29
overlay: Move app-shells/bash modifications from coreos-base/misc-files
krnowak Aug 11, 2026
8860af7
overlay acct-{user,group}/core: New packages for core user/group
krnowak Aug 18, 2026
38bd073
overlay sys-apps/baselayout: Move some kubernetes directory creation …
krnowak Aug 18, 2026
a42c0d1
overlay coreos-base/misc-files: Rename to coreos-base/old-oem-files
krnowak Aug 20, 2026
10d96bc
overlay coreos-base/coreos: Add old-oem-files and core user/group to …
krnowak Aug 20, 2026
66b33ed
overlay profiles: Drop obsolete coreos-base/misc-files from profiles
krnowak Aug 20, 2026
83a96a3
overlay coreos/config: Drop mentions of coreos-base/misc-files
krnowak Aug 20, 2026
59ab03d
overlay acct-user/core: Always use -r when doing read
krnowak Aug 31, 2026
0d98cd1
overlay acct-user/core: Improve tmpfile config file generation
krnowak Aug 31, 2026
6cbc950
overlay acct-user/core: Drop direct dependency on a system package
krnowak Aug 31, 2026
46cbf1c
overlay coreos/config: Typo
krnowak Aug 31, 2026
2a34e3a
overlay coreos/config: Grammar
krnowak Aug 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Comment thread
chewi marked this conversation as resolved.
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

Comment thread
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>
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ RDEPEND="${RDEPEND}
coreos-base/afterburn
coreos-base/coreos-cloudinit
coreos-base/coreos-init
coreos-base/misc-files
coreos-base/old-oem-files
coreos-base/update-ssh-keys
coreos-base/update_engine
coreos-base/ue-rs
Expand Down Expand Up @@ -218,9 +218,11 @@ RDEPEND+="

# Group and user packages to eventually replace passwd in baselayout.
RDEPEND="${RDEPEND}
acct-group/core
acct-group/floppy
acct-group/man
acct-group/uucp

acct-user/core
acct-user/man
"

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.

Loading